Page 1 of 1

Chaning user from a command line

Posted: 2012/01/09 15:46:22
by 70578k8
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.

Re: Chaning user from a command line

Posted: 2012/01/09 20:25:45
by hawaiian717
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.

Chaning user from a command line

Posted: 2012/01/09 21:09:40
by gerald_clark
That will not switch to the other users desktop.

Re: Chaning user from a command line

Posted: 2012/02/10 21:46:00
by allamiro
You have to exit from the desktop to do that switching