LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-21-2004, 11:16 PM   #1
zacherrin
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
e11
Member
 
Registered: Oct 2004
Distribution: Debian
Posts: 84

Rep: Reputation: 15
su root


Regards,

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

Rep: Reputation: 1
man su

Quote:
Originally posted by e11
su root


Regards,

Edwin
[user@host $] man su

;treehead
 
Old 10-22-2004, 10:10 AM   #4
BeatRyder
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

OR


you can type 'su -' to create another terminal instance and log in as root.
 
Old 02-09-2006, 08:11 PM   #5
RoutyRastus
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

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

Rep: Reputation: 271Reputation: 271Reputation: 271
Yup. I have to lengthen this response to at least 10 characters.
 
Old 02-09-2006, 10:09 PM   #7
silmaril8n
Member
 
Registered: May 2004
Location: Vancouver, WA
Distribution: Mint, Debian, Slackware
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
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
Just to expand on BeatRyder:
The cmd
su
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
BeatRyder
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
 
  


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


All times are GMT -5. The time now is 11:34 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration