Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-21-2004, 11:16 PM   #1
LQ Newbie
Registered: Oct 2004
Posts: 10

Rep: Reputation: 0
login/logout command

I was just wondering if its possible to login to your root account while in ur person account from konsol. Reason being in order to install stuff i find myself loging in and out of my name over and over and was wondering if there is a way to just do it through konsol and still have my desktop from my personal account stay up. I have tryed to sh then do it but it still doesnt work, i am using mandrake 10.1. Just trying to look for a shortcut.
Old 10-21-2004, 11:24 PM   #2
Registered: Oct 2004
Distribution: Debian
Posts: 84

Rep: Reputation: 15
su root


Old 10-22-2004, 09:56 AM   #3
LQ Newbie
Registered: Oct 2004
Location: USA
Distribution: Slackware
Posts: 18

Rep: Reputation: 1
man su

Originally posted by e11
su root


[user@host $] man su

Old 10-22-2004, 10:10 AM   #4
LQ Newbie
Registered: Oct 2004
Distribution: Gentoo
Posts: 18

Rep: Reputation: 0
you dont even need the root

you can just type 'su' to give your self root permisions


you can type 'su -' to create another terminal instance and log in as root.
Old 02-09-2006, 08:11 PM   #5
LQ Newbie
Registered: Feb 2006
Location: Council Bluffs, Ia
Distribution: Linspire 4.5, Fedora core 2
Posts: 8

Rep: Reputation: 0
Does this work the same way if I am using a gui in RHC 4 and KDE

Old 02-09-2006, 08:43 PM   #6
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 272Reputation: 272Reputation: 272
Yup. I have to lengthen this response to at least 10 characters.
Old 02-09-2006, 10:09 PM   #7
Registered: May 2004
Posts: 123

Rep: Reputation: 15
Make sure that you check out the "sudo" command as well. It is an alternative to "su"ing to root and working as superuser.
Old 02-10-2006, 12:05 AM   #8
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.10, Centos 7.5
Posts: 17,707

Rep: Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497Reputation: 2497
Just to expand on BeatRyder:
The cmd
will log you in as root, but with your own env eg $PATH, not root's
su -
will log you as root with root's env....
Old 02-10-2006, 12:36 AM   #9
LQ Newbie
Registered: Oct 2004
Distribution: Gentoo
Posts: 18

Rep: Reputation: 0
"su -" also spawns a unique session.
"su" uses your existing one, but elevates your privileges


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
Gnome Login and Logout dudeman41465 Mandriva 1 10-09-2005 07:39 PM
How to auto login after logout on SuSE 9.3 kpsornes SUSE / openSUSE 3 05-13-2005 09:17 AM
Gnome Logout Command kimchee411 Linux - Newbie 1 10-18-2004 12:45 AM
Who is changing perm on login/logout ? artois_val Mandriva 3 02-06-2004 07:58 AM
Login in/ Logout Problems. DakotaMan2002 Linux - Software 1 02-25-2003 02:27 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:54 PM.

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