[sudo-users] Unprivledged user isn't able to reboot system via sudo

Todd C. Miller Todd.Miller at courtesan.com
Tue Jul 31 15:44:24 EDT 2012

On Tue, 31 Jul 2012 14:09:34 +0800, Simon K wrote:

> no i have not enabled
> I/O logs ... my sudoers file is a very simple one i haven't included
> any extra fields there... :-(

I was able to reproduce this on an HP-UX machine.  What happens is
that /sbin/reboot (which is run by /sbin/shutdown) sends a SIGTERM
signal to all processes before it calls the reboot system call.
When sudo receives the SIGTERM, it passes the signal to the command
it is running (shutdown or reboot) which kills the reboot process
before it has had a chance to actually reboot the machine.

I don't have a good solution for this at the moment.

 - todd

More information about the sudo-users mailing list