Date: Wed, 11 Nov 1998 10:09:16 -0500 From: "Steve Friedrich" <SteveFriedrich@Hot-Shot.com> To: "freebsd-questions@FreeBSD.ORG" <freebsd-questions@FreeBSD.ORG>, "Tolpin Vladimir" <tolpin@chat.ru> Subject: Re: Shutdown Message-ID: <199811111513.KAA01529@laker.net>
next in thread | raw e-mail | index | archive | help
On Wed, 11 Nov 1998 12:59:19 +0300, Tolpin Vladimir wrote: >Please explane me how common >user can down server without root password. > > I would like to have such solution: >Add new user call 'shutdown' with password witch use then system start and >when this user login system must start some script file and halt itself. Is >it >possible to do this ??? If yes, please tell me how can I do it. 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. Anyone see any problems with solution 2 ?? 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?199811111513.KAA01529>