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.
using visudo to disable password shutdown fluxbox mint 5
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. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
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. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
using visudo to disable password shutdown fluxbox mint 5
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: using visudo to disable password shutdown fluxbox mint 5
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
Remember that sudden death might occur if you mistreat sudoers
Use no other application to edit than visudo - it has a basic syntax check
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:
(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
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
Use no other application to edit than visudo - it has a basic syntax check
Code: Select all
sudo visudo
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
Pray that everything is alright
I don't know for sure if this takes effect immediately or first after a reboot