On 1/11/06, Gideon N. Guillen <[EMAIL PROTECTED]> wrote:
> On 1/11/06, Jerome Gotangco <[EMAIL PROTECTED]> wrote:
> > If you need root, you can enable it:
> [snipped]
>
> Another way to get a root command line w/o enabling the root account is to 
> use:
>
>     sudo -S -h

Hmm... that should read

sudo -s -H

Note the capitalization. -S (capital S) tells sudo to read the
password from stdin; -h (lowercase h) tells sudo to print a help
message. OTOH, -s (lowercase s) tells sudo to run a shell and -H
(uppercase H) to set the home directory environment variable to that
of the user being sudo'd as (in the default case, root).


--
JM Ibanez --

Book:   If you take sexual advantage of her, you're going to burn in a
        very special level of Hell, a level they reserve for child
        molesters and people who talk at the theater.
        (Firefly, "Our Mrs. Reynolds")
-----
http://www.livejournal.com/~jmibanez/
http://www.mycgiserver.com/~butiki/
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to