Date: Wed, 11 Nov 1998 13:14:30 -0500 From: "Steve Friedrich" <SteveFriedrich@Hot-Shot.com> To: "Dan Busarow" <dan@dpcsys.com> Cc: "freebsd-questions@FreeBSD.ORG" <freebsd-questions@FreeBSD.ORG>, "Tolpin Vladimir" <tolpin@chat.ru> Subject: Re: Shutdown Message-ID: <199811111816.NAA04116@laker.net>
next in thread | raw e-mail | index | archive | help
On Wed, 11 Nov 1998 09:20:06 -0800 (PST), Dan Busarow wrote: >On Wed, 11 Nov 1998, Steve Friedrich wrote: >> I tried two different solutions: >> 1. Add a user called shutdown and use vipw to change his shell from >> /bin/sh to /sbin/halt. Use vipw to change the user ID to 0 >> 2. Use chmod +x /sbin/shutdown to allow ordinary users execute >> privilege. >> >> Solution 1 might allow users to Control-C their way to a root prompt. >> Solution 2 seems best to me. > >Just add the users who should be able to shutdown the system to >group operator. That's why /sbin/shutdown is setuid root Thanks for the tip. I think this should be documented somewhere, like the shutdown man page. I couldn't find it in the handbook either. Unix systems measure "uptime" in years, Winblows measures it in minutes. 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?199811111816.NAA04116>