Hi, (plz send it to the the liste if it works, thx)
my resolution is to give the reboot programm as the shell...
untested but I thing it must be work:
# Adds a user "reboot" with UID 0 GID0 shell /sbin/reboot
export HOMEDIR="/home/reboot"
useradd -u 0 -o -g 0 -d $HOMEDIR -s /sbin/reboot -c "Reboot User" reboot
install -d -g 0 -o 0 -m 500 $HOMEDIR
passwd reboot
export -n HOMEDIR
so long... Kai
EOT
----- Original Message -----
From: "Peter Nixon"
On Thu, 10 Jan 2002 23:53:02 +0100 Huge Rademaker
wrote: Op donderdag 10 januari 2002 23:39, schreef u:
Hi folks.
I want to enable a user to login, and after succesful login the system reboots.
I shall not ask why you want that..... Is he a good friend of yours?
I tried out the following: - creating an user - in ~/.profile I put "sudo /sbin/reboot" - with visudo I defined "<username> ALL: NOPASSWD: /sbin/reboot" but this won't work.
Am I missing something or am I totally on the wrong way ?
I suggest you change the user's login shell to /sbin/reboot (in /etc/passwd). But I've never tried that.
And, of course you will need to set his UID to 0 in /etc/passwd
-- Viel Spaß
Peter Nixon - nix@susesecurity.com SuSE Security FAQ Maintainer http://www.susesecurity.com/faq/
"If you think cryptography will solve the problem, then you don't understand cryptography and you don't understand your problem."
-- To unsubscribe, e-mail: suse-security-unsubscribe@suse.com For additional commands, e-mail: suse-security-help@suse.com