Link to home
Start Free TrialLog in
Avatar of gumball60
gumball60Flag for United States of America

asked on

Changing Identity(su command)

I am a new Solaris administrator. When you "su" to another person ex: (su - James).  What should I use the root password or my user password to assume a users identity. Neither have been working for me.

ASKER CERTIFIED SOLUTION
Avatar of yuzh
yuzh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
A little more detail that may be missed in the man page.

Running "su - <ID>" will change to that user but also run that user's .profile/.cshrc or whatever.  The - symbol makes this happen.

Just running "su <ID>" changes to that user but does not run that user's .profile/.cshrc or whatever.
to be more exact:
  su - ID  #  is identical to a login (see man su)