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 this

using visudo to disable password shutdown fluxbox mint 5

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

Hello,
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.
sidevalve
Level 1
Level 1
 
Posts: 6
Joined: Thu Apr 16, 2009 10:49 am

Linux Mint is funded by ads and donations.
 

Re: using visudo to disable password shutdown fluxbox mint 5

Postby Husse on 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
username ALL=NOPASSWD: HALT, REBOOT
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
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19714
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden


Return to Newbie Questions

Who is online

Users browsing this forum: Google Adsense [Bot], hansi and 40 guests