using visudo to disable password shutdown fluxbox mint 5

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Level 1
Level 1
Posts: 6
Joined: Thu Apr 16, 2009 10:49 am

using visudo to disable password shutdown fluxbox mint 5

Postby sidevalve » Wed May 27, 2009 4:31 pm

I'm using Mint 5 fluxbox and I'm finding the requirement for my password to shut down irritating (I use auto log in).
I know that I need to edit sudoers to disable the requirement for the password and I'm told that I must use visudo to do it and that it's perilous.
Any experts out there care to help me out here? I'd be grateful.

Level 23
Level 23
Posts: 18703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: using visudo to disable password shutdown fluxbox mint 5

Postby Husse » Sun May 31, 2009 2:19 pm

First - editing the sudoers file is not for newbies
I have twice (I think) made a simple mistake editing that file (a copy and the live CD is the rescue :))
Second - I have no real clue as to how to do this and it is a bit risky not to have a password on shutdown in fluxbox I think
But you might google a solution so here goes
First copy sudoers

Code: Select all

sudo cp /etc/sudoers /etc/sudden

Remember that sudden death might occur if you mistreat sudoers
Use no other application to edit than visudo - it has a basic syntax check

Code: Select all

sudo visudo

Add a line like this
Note: HALT and REBOOT are aliases you must add in the sudoers file, like this:

Code: Select all

# Cmnd alias specification
Cmnd_Alias REBOOT = /sbin/reboot
Cmnd_Alias HALT = /sbin/halt

(At least in main this is the location of these files)
Pray that everything is alright
I don't know for sure if this takes effect immediately or first after a reboot
Don't fix it if it ain't broken, don't break it if you can't fix it

Return to “Newbie Questions”