I have a system that needs to be powered
down each night. I'd like a way for the
users to be able to use shutdown to turn
off power in a nice way. The way we used
to do this with SunOS 4.1.x was to put
a user called 'shutdown' in the /etc/passwd
file with the same uid and group as root,
and instead of a login shell it called
/etc/halt or /etc/shutdown. This doesn't
seem to work on Solaris 2.6. I've tried
writing a setuid shell script but that
doesn't work because only the euid is set.
Any ideas?