Newsgroups: comp.os.linux.setup Date: Wed, 11 Dec 2002 21:00:48 -0400
>>>The shell for poweroff account is /sbin/poweroff, but its behavior is >>>different than normal: My system only comes to "system halted" status >>>when executing this /sbin/poweroff as shell from poweroff account, >>>whereas executing /sbin/poweroff as root will go pass this status and >>>turn the power off. What makes this difference? How can I also turn off >>>the power by poweroff account? >> >>[...] do not make /sbin/poweroff the login shell for the >>"poweroff" user. Do it with a little more sophistication. Write a shell >>script that can accomplish what you want, and make that the login >>"shell". > >Please shed more lights on this. I don't understand why bring more >complexity into the situation would solve any problem. >/sbin/poweroff is a simple smylink to /sbin/halt, which is a 32b ELF >executable. What the different it would make executing an executable as a >login shell command, or from command line or in a shell scripts?
Obviously by (1) creating and testing a shell script, then (2) making that the login shell, there is an intermediate testing possibility.
Paul Lutus