Subject: Re: using "shutdown" as a shell
To: Lubos Vrbka <shnek@chemi.muni.cz>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-help
Date: 09/11/2003 15:09:48
On Thu, 11 Sep 2003, Lubos Vrbka wrote:

> after execution from the command prompt, it restarts the system - no problem
>
> after invocation as a shell does 5 seconds nothing and then returns back
> to the login prompt.

Can you add some debugging to it (so that it prints to console or syslog)
so you can see what it is doing?

Or don't use a wrapper, just copy the shutdown command, like:

cp /sbin/shutdown /usr/local/sbin/login-shutdown
chgrp shutdown /usr/local/sbin/login-shutdown
chmod 4554 /usr/local/sbin/login-shutdown

And use that as the shell.

Make a shutdown group and make sure you shutdown user is a member of it.



   Jeremy C. Reed
   http://www.reedmedia.net/