Test for root.

Matt Alexander plug-discuss@lists.PLUG.phoenix.az.us
Fri, 7 Sep 2001 08:11:07 -0700 (PDT)


On Fri, 7 Sep 2001, David A. Sinck wrote:

>
>
> \_ SMTP quoth Matt Alexander on 9/6/2001 17:35 as having spake thusly:
> \_
> \_ On Thu, 6 Sep 2001, Matt Alexander wrote:
> \_
> \_ P.S.  You should also get in the habit of specifying the full path to any
> \_ programs you use in your shell scripts.  So in the above test, use
> \_ /usr/bin/whoami instead of just whoami.
>
> I haven't tried this in a malicious setting, but I bet chroot could
> foil that too.

On most Unix systems, only root can use the chroot command.
~M