Subject: Re: [Fwd: 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:33:48
On Fri, 12 Sep 2003, Lubos Vrbka wrote:

> > 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.
> but what about the parameters ( -r now)? i think it's not possible to
> specify them in the shell specification in /etc/passwd. or am i mistaken?

You are right.

Maybe you can copy /sbin/reboot instead (and keep same name).

Or show us the wrapper code that is not working for you. I am sure a few
lines of code are available on the web for this.

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