-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thilo Six wrote: > Kamaraju S Kusumanchi wrote the following on 21.04.2007 02:02: >> Masatran, R. Deepak wrote: >> >>> How can I replace SU with Sudo (like Ubuntu), in Gnome and other >>> applications? >>> >> I will mention this since sooner or later (I think) you will hit this. >> >> su - gives you a root shell so you can execute multiple commands (one after >> another) as being root. sudo is usually used to run a single command as >> root (ex :- sudo apt-get update). If instead, you want to use sudo to gain >> access to a root shell, you can use >> >> sudo -s >> sudo /bin/bash > > sudo -i > > bye Thilo
Nothing like posting what was already in this thread. Note that doing things with sudo the way Ubuntu does it is dangerous because if someone hacks into your computer (not likely if you have good security set up) or someone happens to come by your computer while sudo still keeps the password in memory, your giving full root access to said interloper. That's why you only have to type the password once for multiple sudo commands. (BTW, the timeout is adjustable) A much safer way is to use su -c "foo" and only issue the one command, but the quotes are needed, and that can become tiresome. But remember, it is your system and how you choose to use it is your decision. Just keep good security practices in mind and you're likely to enjoy happy computing a lot longer. Joe - -- Registerd Linux user #443289 at http://counter.li.org/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGKl/UiXBCVWpc5J4RAnevAKC2zikIGq0usPlcVnyztvNbEtATqgCfWqTh Ga1ddgFbRMab9PUOJLiVM90= =bKeu -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]