[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: An elementary question about execution permissions



At 1154688301 past the epoch, Rodolfo Medina wrote:
>  -rwxr-xr-x  1 root root 18516 2005-01-04 23:43 /sbin/shutdown
>  shutdown: you must be root to do that!

The binary permissions are correct, so you can execute "shutdown", but
it uses system calls which insist on you having uid=0.

If you want users to be able to do "shutdown", take a look at the
"ACCESS CONTROL" section of the shutdown(8) manpage.

-- 
Jon Dowland
http://alcopop.org/



Reply to: