Date: Wed, 11 Nov 1998 09:20:06 -0800 (PST) From: Dan Busarow <dan@dpcsys.com> To: Steve Friedrich <SteveFriedrich@Hot-Shot.com> Cc: "freebsd-questions@FreeBSD.ORG" <freebsd-questions@FreeBSD.ORG>, Tolpin Vladimir <tolpin@chat.ru> Subject: Re: Shutdown Message-ID: <Pine.BSF.3.96.981111091857.3424G-100000@java.dpcsys.com> In-Reply-To: <199811111513.KAA01529@laker.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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 Dan -- Dan Busarow 949 443 4172 Dana Point Communications, a California corporation dan@dpcsys.com Dana Point, California 83 09 EF 59 E0 11 89 B4 8D 09 DB FD E1 DD 0C 82 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.981111091857.3424G-100000>