Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Sep 1998 00:05:41 -0500 (EST)
From:      Kenneth Chiu <chiuk@cs.indiana.edu>
To:        Malartre <malartre@aei.ca>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Why shutdown -r now work but not reboot has a user?
Message-ID:  <Pine.BSF.3.96.980831235723.4277B-100000@localhost>
In-Reply-To: <35EB37D2.EBDA6DA6@aei.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
shutdown has a special file mode bit set, called the setuid bit.  When
you execute such a file, the new process takes on the uid of the owner
of the file.  Thus, when you are executing shutdown, you temporarily
become root.

reboot is not set-uid.

On Mon, 31 Aug 1998, Malartre wrote:
> Why shutdown -r now work but not reboot has a user?
> My user is in the wheel and operator group and can "shutdown -r now" but
> NOT use the shortcut "reboot".
> -- 
> [Malartre][malartre@aei.ca][http://www.aei.ca/~malartre/]
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980831235723.4277B-100000>