non root shutdown????

Hey,

I was wondering if there was an easy way to give a nonroot user shutdown privileges? I've been reading lots about it but it's all long and complicated for what i need to do. Really i just need this user to beable to run one command shutdown -h now and thats it. Oh yeah and i'm running RH 7.1

Thanks
Byblyk.

Try sudo

its a little complicated setting up but not to bad :slight_smile:

/Peter

oh shoot, i forgot about that haha i've never had a use for it before so i jsut kinda forgot but i'll refresh my memory and give her a go. Thanks.

Or you could completely waste your time and do 'su root', then 'shutdown'. :slight_smile:

simple. just chmod +s `which shutdown` `which reboot`

  • Farhan