[CentOS-docs] becoming root

Mon Apr 7 13:52:55 UTC 2008
John <jses27 at gmail.com>

On Sun, 2008-04-06 at 14:12 +0100, Alan Bartlett wrote:
> On 06/04/2008, Ned Slider <nedslider at f2s.com> wrote:
>         I've just drafted a FAQ/mini-HOWTO on becoming root as this is
>         a topic I see come up time and time again.
>         Perhaps someone with a reasonable understanding could check it
>         for technical correctness, and if anyone would like to offer
>         comments/feedback??
>         Any suggestions as to where might be an appropriate home for
>         this on the Wiki?
> As someone who was used to all users having the same search-path (I'm
> going back 25 or so years), when I first came across the use of a
> separate path for the super-user I asked the question "Why?". I have
> long since answered that question and support the concept. (An aside,
> can anyone tell me why one of the original grep flags, -y, was changed
> to -i ?)
> Perhaps what also needs to be said is that "su <user>" gives the
> current user the identity of <user> whilst "su - <user>" gives the
> current user the identity of <user> *along with* <user>'s environment
> that would normally be obtained by logging in as <user>. 

Same as mine says See below.
> I probably haven't expressed the above very well. Looking in my old
> Unix System V manuals for the su command, I read "An initial - flag
> causes the environment to be changed to the one that would be expected
> if the user actually logged in again."

I have an old Unix in a Nut Shell by O'Reilly. It mentions if the shell
runs "SH" you can specify the option -c to execute a command by SH and
-r to create a restricted shell. Then it mentins use EOF to terminate.
> Perhaps a mention of sudo and sudoers could also be made?
> Alan.
> _______________________________________________
> CentOS-docs mailing list
> CentOS-docs at centos.org
> http://lists.centos.org/mailman/listinfo/centos-docs

OpenPGP Sig:BA91F079