Test for root.

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Matt Alexander
日付:  
題目: 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