Test for root.

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Matt Alexander
Date:  
Subject: Test for root.
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