![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
First Cup of Ubuntu
![]() |
HOWTO: Use normal root instead of Sudo
I'm sure theres probably a howto something like this already laying around somewhere on the forums, but for you people who want classic root access by just using the su command and typing in your password instead of using sudo commands, just do this on the command line:
Code:
sudo passwd After you do that it'll prompt you with this: Code:
Enter new UNIX Password: Code:
Retype new UNIX password: Code:
passwd: password updated successfully |
|
|
|
|
|
#2 |
|
Dipped in Ubuntu
![]() |
Re: HOWTO: Use normal root instead of Sudo
http://www.ubuntulinux.org/support/d...ation/faq/root
If you want to use su, typing "su -" may save you some headaches.
__________________
"Linux is like a wigwam. No Windows, no Gates and Apache inside!" - Unknown RFC 3092 - Etymology of "Foo" |
|
|
|
|
|
#3 |
|
Spilled the Beans
![]() Join Date: Nov 2004
Location: Belgium
Beans: 10
|
Re: HOWTO: Use normal root instead of Sudo
You can also use
Code:
sudo su -
__________________
I was once in a threehouse, I lived in a cake! |
|
|
|
|
|
#4 |
|
5 Cups of Ubuntu
![]() Join Date: Dec 2006
Beans: 20
Ubuntu 6.06 Dapper
|
Re: HOWTO: Use normal root instead of Sudo
linux administrator needs root/su sometimes.
Add a root password using sudo (or by some means) sudo passwd root password: [my_secret] Enter new UNIX password: [roots_secret] Retype new UNIX password: [roots_secret] passwd: password updated successfully Become root su Password: [roots_secret] Fix invalid MIT-MAGIC-COOKIE-1 Add the following 2 lines to /root/.bashrc DISPLAY=:0.0 export DISPLAY 'Steal' a user .Xauthority file by adding the following 2 lines to /root/.bashrc XAUTHORITY=/home/[some_user]/.Xauthority export XAUTHORITY Link /usr/X11R6/bin/xauth (stupidly missing for gksu in dapper) ln -s /usr/bin/xauth /usr/X11R6/bin/xauth Make gksu act like su gconf-editor apps -> gksu uncheck sudo-mode Now I can login as root on the text console (ctrl-alt-F1), use su, use gksu, gksudo, run gvim (Yea!) My 2 cents: 'sudo rm -r /*' is as effective for total destruction as su. sudo safety is imaginary. sudo has its gotchas. not everything works with sudo the same way it does with su. sudo is cool for its purposes, but it doesn't replace su. sudo is ok, and linux as linux with root is ok. nobody make me believe that linux does not need su/root sometimes. Last edited by lmo; December 13th, 2006 at 11:36 PM.. |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|