On 09/05/06, Neil Bothwick <[EMAIL PROTECTED]> wrote:
On Tue, 9 May 2006 11:36:42 -0400, Timothy A. Holmes wrote:
> when I go to shut down the laptop, the shutdown command will not work
> from my regular user, I have to su to be able to shutdown -- I use
> fluxbox, and I know this works properly in gnome/kde, I was just
> wondering if there was a way it could be made to work in fluxbox -- I
> don't mind opening a terminal and typing the command, I would, like to
> be able to avoid having to su though
sudo would seem the obvious solution. Add shutdown to /etc/sudoers for
your user, without a password, and use 'sudo shutdown...' to shutdown.
Use visudo to edit /etc/sudoers, don't edit it directly.
--
Neil Bothwick
Just as Neil said, check the man pages for sudo and visudo (it's also
well explained in the wiki: http://gentoo-wiki.com/Sudo_config ).
Then add this to your flux .menu:
=========================
[exec] (Shutdown) {sudo /sbin/shutdown -h now}
=========================
--
Regards,
Mick
--
gentoo-user@gentoo.org mailing list