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

Re: Howto make root commands available to any user

Otto Wyss wrote:
On my desktop system I'd like to make certain commands requiring root
(i.e. halt) available to ordinary users. What choices do are there?
Are there already any script which makes a desktop linux system more
user friendly?

O. Wyss

Check 'sudo'. The respective entry in /etc/sudoers would be

sk    ALL=NOPASSWD:    /sbin/halt, /sbin/reboot, /sbin/poweroff

(replace sk by your username). You can now run 'sudo halt' etc. as an
ordinary user. If you define

alias halt='sudo halt'

then this is exactly what you want.


Reply to: