LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   login/logout command (https://www.linuxquestions.org/questions/linux-newbie-8/login-logout-command-245782/)

zacherrin 10-21-2004 10:16 PM

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.

e11 10-21-2004 10:24 PM

su root


Regards,

Edwin

treehead 10-22-2004 08:56 AM

man su
 
Quote:

Originally posted by e11
su root


Regards,

Edwin

[user@host $] man su

;treehead

BeatRyder 10-22-2004 09:10 AM

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.

RoutyRastus 02-09-2006 07:11 PM

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

RoutyRastus

pljvaldez 02-09-2006 07:43 PM

Yup. I have to lengthen this response to at least 10 characters.

silmaril8n 02-09-2006 09:09 PM

Make sure that you check out the "sudo" command as well. It is an alternative to "su"ing to root and working as superuser.

chrism01 02-09-2006 11:05 PM

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

BeatRyder 02-09-2006 11:36 PM

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


All times are GMT -5. The time now is 01:48 PM.