so anyway, all the sites tell me that to sudo something when I have no password tell me one of two thing.
"wargh wargh its bad security, wargh wargh spittle".
use "sudo visudo" and the %admin ALL=(ALL) NOPASSWD: ALL line
Let's imagine that I'm not going to put a password on anything in my house. ever.
Websites tell me to use sudo when I have no password, usually tell me one of two things.
It is bad security
Or use 'sudo visudo' and the %admin ALL=(ALL) NOPASSWD: ALL line
I would like to not have a password on anything despite the security risks.
Going with option 2, I'm trying to avoid getting prompted to enter a password at all on my account.
So the problem with option 2, is that sudo is
Hi Experts,
sudo is installed on my solaris box as shown below.
Code:
# ls -ltr /usr/local/etc/sudoers
-r--r----- 1 root root 2869 May 23 14:33 /usr/local/etc/sudoers
# whereis sudo
sudo: /usr/local/bin/sudo
# uname -a
SunOS prod 5.10 Generic_144488-05 sun4v sparc sun4v
#
However while trying to edit the sudoers file using visudo, it is g
What am I doing wrong here as this line is making visudo fail
dhiller2 ALL= ALL, !NSHELLS, !NSU NOPASSWD: ALL
this line works
dhiller2 ALL= ALL, !NSHELLS, !NSU
How to fix this?
and yes, I know there are ways to get around this...this is just to remind our admins that policy is not sudo su - and you should be using sudo to run all commands.
thanks,
Dean
I would like to permit all my users to shut down or reboot the machine so i did the following changes issuing sudo visudo:# User privilege specificationroot ALL=(ALL) ALLsparky ALL=(ALL) ALL # Oh yeah iam a sudorer!ALL ALL=NOPASSWD: /sbin/shutdown# Allow members of group sudo to execute any command# (Note that later entries override this, so you might need to move# it further do
Everyone says that you need to use this to edit your sudoers file, but I have never used it in all the years I have used sudo. Every time I install sudo I just:
Hello
I just want to edit the sudoers file but when i tries to open that its showing some error
Code:
root@ariem-desktop:/usr/local/etc# sudo visudo
visudo: /etc/sudoers busy, try again later
root@ariem-desktop:/usr/local/etc#
i didnt find any sudoers.tmp file
Can anybody help me?
I am trying to make it so that I can have a script running on my computer that will check to see if a reboot code has been sent, and it will be checking a MySQL database.
tuberbob wrote:(yes, I used 'EDITOR=nano visudo' to edit it, not nano or gedit, and yes, I changed it to my username and hostname) to allow non root users to shutdown, and forgot the ':' while typing.