LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-07-2006, 04:24 PM   #1
Lar
Member
 
Registered: Oct 2004
Posts: 39

Rep: Reputation: 15
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?/
 
Old 01-07-2006, 04:29 PM   #2
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,178

Rep: Reputation: 49
$ su
Password:
#

"su" is the command to 'switch user'
 
Old 01-07-2006, 04:49 PM   #3
hand of fate
Member
 
Registered: Nov 2003
Distribution: Mandriva
Posts: 441

Rep: Reputation: 30
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".
 
Old 01-07-2006, 05:33 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
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 ~]$
 
Old 01-07-2006, 07:34 PM   #5
Lar
Member
 
Registered: Oct 2004
Posts: 39

Original Poster
Rep: Reputation: 15
Thanks for help ....that did it
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
last shows root login using tty2 terminal from differnet user machines maheshs Linux - Security 1 04-17-2005 02:12 PM
how to run ifconfig as root without super user terminal GUIPenguin Linux - General 1 01-15-2005 10:06 AM
fluxbox user menu open terminal with root programs? darkleaf Linux - Software 2 10-14-2004 05:44 AM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 04:14 PM
Why does kppp.desktop require root userid for non-root user? rdaves@earthlink.net Linux - Networking 4 08-27-2001 09:18 AM


All times are GMT -5. The time now is 10:35 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration