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

Re: How to Shutdown as a normal user?



On Thu, 16 Sep 2004, Teuchteu wrote:

> I created a user with root privileges who just makes a shutdown -h now 
> (Well i edit the /etc/passwd file to launch a script that shut down the 
> computer). We wave the same at work on Unix platform (we don't have root 
> privelege :((
> I'm sure it's far to be the best solution, but it is simple, and easy...

Of course, any user with the shutdown-user password (or everyone if the
password is nulled) can trivially get root privs using 'su <shutdown
userid>'.  The correct way to do this is with sudo or equivalent.

(I haven't been following this thread, so forgive me if I'm missing some
assumed condition that makes that invalid.)

-- 
Brad Sawatzky <bds9e@virginia.edu>
University of Virginia Physics Department
Ph: (434) 924-6580    Fax: (434) 924-7909



Reply to: