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

Re: Allowing users to shutdown



On Wed, 26 Jan 2000, Bill Wilson wrote:

> I agree 100%.  I was just describing what I had done for single user
> home setup.   Shortly after I posted that message I was regretting not
> having suggested a /usr/bin/shutdown script using sudo as a better idea
> for many who read the list.  Sorry.

how I did it (temporarily) was to add a new group, shutdown.
put two trusted users in it, 'chown root.shutdown shutdown', 'chmod 750
shutdown', 'chmod u+s shutdown'.

hence, only members of shutdown are allowed to execute it, and it will be
run suid root.

-- 
yours etc.                                        [gin & tonic.ucam.org]
                                                     Tel:   01223 519254
David.                                               Pager: 07654 341140
davidh@arsenalfc.net               PGP: finger -l dh219@hermes.cam.ac.uk



Reply to: