terminal root to user
How can I change from root to user while im in the terminal mode ?Installing yum you are in root and at one point i want to go back to user to enter a command...Is it possible?/
|
$ su
Password: # "su" is the command to 'switch user' |
I think the question is how to change from root to another user.
Type "su" followed by a single space, then the username you wish to switch to. Alternatively, if you originally logged in as another user then switched to root with "su", type "exit" to get back to where you were before you entered "su". |
I like to use the dash ( - ) as that puts you in the /home/user folder. Also, when switching to a user from the root terminal, you don't need a password. You do type exit to get back to the root terminal.
For example: [root@mudd ~]# su - fred [fred@mudd ~]$ |
Thanks for help ....that did it
|
All times are GMT -5. The time now is 02:04 AM. |