switching users

Hi All,

I used to know a comand that you could log in as another user from root, if you didn't know the password for the account.

Can anyone let me know what it is?

su

?

yep

su - <userid> 

or

su <userid> 
  • depending if you want or want not his profile

Kind regards
zxmaus