LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   terminal root to user (https://www.linuxquestions.org/questions/linux-software-2/terminal-root-to-user-400663/)

Lar 01-07-2006 04:24 PM

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?/

Poetics 01-07-2006 04:29 PM

$ su
Password:
#

"su" is the command to 'switch user'

hand of fate 01-07-2006 04:49 PM

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".

homey 01-07-2006 05:33 PM

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 ~]$

Lar 01-07-2006 07:34 PM

Thanks for help ....that did it


All times are GMT -5. The time now is 02:04 AM.