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.
|
su root
Regards, Edwin |
man su
|
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. |
Does this work the same way if I am using a gui in RHC 4 and KDE
RoutyRastus |
Yup. I have to lengthen this response to at least 10 characters.
|
Make sure that you check out the "sudo" command as well. It is an alternative to "su"ing to root and working as superuser.
|
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.... |
"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. |