Re: user=halt=halt, user=reboot=halt?
I do not get exactly why he is doing this but ...
I played as follows without answer. (No reboot, of course)
He seems to set login shell through /etc/passwd entry as some command.
So I checked how login interprets them if it is softlink to some other
command by using shell script with $0. It prints right command name
with full pathname when su to account.
Hah,...
On Fri, Apr 20, 2001 at 01:01:53PM -0700, Karsten M. Self wrote:
> on Fri, Apr 20, 2001 at 04:15:33PM +0400, Ilya Martynov (m_ilya@agava.com) wrote:
> > LH> Hello, LH> I added users to halt and reboot, respectively, by
> > making the formers login LH> shell /sbin/halt and the latter's
> > /sbin/reboot.
> >
> > LH> If I login as the halt user, the system shuts down and powers
> > off. Great. LH> When I login as the reboot user, the system shuts
> > down and powers off. Not LH> what I wanted.
> >
> > LH> This isn't a huge deal, but I would like to know why this is
> > happening. LH> Thanks.
> >
> > May be becouse /sbin/reboot is just simlink to /sbin/halt? Try using
> > /sbin/shutdown -r now as shell.
>
> man halt. When called as 'reboot', halt should.
>
> It looks as if what Lang's trying should work. Why it's not I don't
> know. I'm not going to sacrifice my uptimes to finding out why, but I'd
> suggest he investigate. I may the next time I take a system down.
>
> Cheers.
--
~\^o^/~~~ ~\^.^/~~~ ~\^*^/~~~ ~\^_^/~~~ ~\^+^/~~~ ~\^:^/~~~ ~\^v^/~~~
+ Osamu Aoki <debian@aokiconsulting.com>, GnuPG-key: 1024D/D5DE453D +
+ For my debian quick-reference, peek into: +
+ http://www.aokiconsulting.com/quick/ +
Reply to: