Solved

su - pielm

Posted on 2011-02-18
2
285 Views
Last Modified: 2012-05-11
hi,
what will this commadn do ?
0
Comment
Question by:aashee
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 11

Accepted Solution

by:
rowansmith earned 250 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 250 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

730 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