?
Solved

su - pielm

Posted on 2011-02-18
2
Medium Priority
?
295 Views
Last Modified: 2012-05-11
hi,
what will this commadn do ?
0
Comment
Question by:aashee
2 Comments
 
LVL 11

Accepted Solution

by:
rowansmith earned 1000 total points
ID: 34931208
This command will switch to the user named "pielm" the "-" will prevent the running of the users startup scripts (if any).  If you are not root when you run this command then you will be prompted for the password of user pielm.

Try typing "man su" for the su manual page.

Or fllow this link:

http://unixhelp.ed.ac.uk/CGI/man-cgi?su

0
 
LVL 12

Assisted Solution

by:upanwar
upanwar earned 1000 total points
ID: 34931424
If you do the su - <user name> then it will bring you in the perticular user's home directory and will load user's environment variable and you.

su - pielm

In short you will become the user pielm with full rights and environment setting of pielm but If you will not include the - then you will just become user pielm, without changing the current directory and environment variable.

like: su pielm

If you executing this command as root then It will not ask for password but if you are executing this as a not root user then it will prompt for password.

If we simply type su or su - with a non root user, it means we are trying to become root and it will prompt us for password.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month17 days, 12 hours left to enroll

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question