From owner-freebsd-questions Mon Aug 31 22:06:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA19719 for freebsd-questions-outgoing; Mon, 31 Aug 1998 22:06:58 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from silky.cs.indiana.edu (silky.cs.indiana.edu [129.79.253.71]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA19712 for ; Mon, 31 Aug 1998 22:06:53 -0700 (PDT) (envelope-from chiuk@cs.indiana.edu) Received: (from chiuk@localhost) by silky.cs.indiana.edu (8.8.7/8.8.7/IUCS_2.18) id AAA04643; Tue, 1 Sep 1998 00:05:46 -0500 (EST) Date: Tue, 1 Sep 1998 00:05:41 -0500 (EST) From: Kenneth Chiu X-Sender: ken@localhost To: Malartre cc: freebsd-questions@FreeBSD.ORG Subject: Re: Why shutdown -r now work but not reboot has a user? In-Reply-To: <35EB37D2.EBDA6DA6@aei.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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