Chaning user from a command line
Chaning user from a command line
Is it possibel to change the user on command line? Or do I have to logout from GUI and login from GUI, in centos 5.7.
-
- Posts: 184
- Joined: 2009/01/30 19:58:25
- Location: California
Re: Chaning user from a command line
You can use the [b]su[/b] command to switch to a different user:
[code]$ su - newusername[/code]
You will then be prompted for the other user's password.
You can type [b]exit[/b] when you are done to switch back.
[code]$ su - newusername[/code]
You will then be prompted for the other user's password.
You can type [b]exit[/b] when you are done to switch back.
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Chaning user from a command line
That will not switch to the other users desktop.
Re: Chaning user from a command line
You have to exit from the desktop to do that switching