I am currently:
I wish to change to:
How does one do this. I tried:
su sensu but nothing happens.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
You should use
su [-|-l|--login] USERNAME
If you specify the login option (either
--login: all are synonyms), you will get an environment similar to if you directly logged in as that user. Otherwise you stay in the current environment (e.g. many
env variables, the current directory, etc).
Example: (note the usernames and current working directories!)
root@wolf-pack:~# su bytecommander bytecommander@wolf-pack:/root$ exit exit root@wolf-pack:~# su - bytecommander bytecommander@wolf-pack:~$ exit logout root@wolf-pack:~#
PS: If you run
su not as root, you will of course be prompted for the password of the user as who you want to log in.