Feedback
I have tried the above in an Ubuntu OS. It does not work and even with many other variations made to the sudoers file, I am always asked for a password when I execute sudo command.
Sir Percy
December 30, 2008
#1
Which version of Ubuntu are you using? It flawlessly works from at least 7.04.
Jérôme Jaglale
December 30, 2008
#2
8.0x Server Version
I will try your fix again on Friday.
thanks
Sir Percy
December 30, 2008
#3
I overlooked the fact that it must be at the end of the file. In my version, the last line of code gives all users in the admin group root access but with a password required. If your line precedes this, then the effects are undone by the last line of code because my user login is also a member (unintentional) of admin.
Sir Percy
December 31, 2008
#4
Hi, i tried previous command and it works. I have Ubuntu Jaunty 9.04 alpha 6
Mcfee - Pablo Andres Diaz A.
March 24, 2009
#5
hai
its working fine in Kubuntu 8.04
sudo visudo
jaleel ALL=NOPASSWD: ALL
save and reboot
thanks a lot
saitjaleel@yahoo.com
S.jaleel
July 9, 2009
#6
'ya dont need to reboot..
Netmonger
July 29, 2009
#7
%sudo ALL=NOPASSWD: ALL
will also help... For me helped.
ppp0
November 10, 2009
#8
Not working 4 me man.I did exactly what you wrote.Here as you can see.Nothing happened.
# User privilege specification
root ALL=(ALL) ALL
caglar ALL=(ALL)NOPASSWD: ALL
# Uncomment to allow members of group sudo to not need a password
# (Note that later entries override this, so you might need to move
# it further down)
# %sudo ALL=NOPASSWD: ALL
# Members of the admin group may gain root privileges
?min ALL=(ALL) ALL
caglar
December 31, 2009
#9
works on Karamic 9.10. Thanks....
bijugv
January 14, 2010
#10
caglar - you didn't place the "caglar ALL=(ALL) NOPASSWD: ALL" at the END OF THE FILE. It works for me under Karmic 9.10.
(What I actually did was place the %sudo line at the end of the file, and did a "sudo adduser sudo")
cafehunk
January 21, 2010
#11
This is awesome, I tried it in Linux Mint 9 (Pretty much Ubuntu 10.04 with closed source packages, and a custom menu), and it works flawlessly. I hope it also works with package installs and programs like gparted.
Izzy
May 22, 2010
#12
but, but, why? you are destroying the nice security that it brings :S
Dr Dolme
June 22, 2010
#13
Cant download anything or play voice messages on computer due to needing my password when I forgot a long time ago
carl Lewis
November 15, 2010
#14
This doesn't work! What are you talking about? HA! You DON'T know what you're talking about, you big fat $%^#ing $%^!
November 27, 2010
#15
WOW! THAT person has obviously gone insane! IT'S JUST A COMPUTER!
By the way - Yes, that's my real name!
Julita Altagracia Maria Teresa Alvarez Tavares Perello Espaillat Julia Perez Rochet Gonzalez
November 27, 2010
#16
Correct. Eliminating sudo is the biggest security threat you can ever do to your system; especially a server. Awful practice.
avgvstvs
January 4, 2011
#17
Security? Maybe if your brother is attacking your system by slipping in while you go to the bathroom. If an attacker has access to YOUR account and you have root permission you are already screwed. What no password sudo gives to a desktop is that you can ease the burden of administration slightly. For a multi-user system it is a bad idea since the commands you issue as root will affect the work of others. Thus, the password prompt is a fine indicator that you should think twice.
L
January 15, 2011
#18
The password prompt is indeed a good indicator of the severity of your actions. Nullifying the use of a password is a security risk. While entering your password every time is cumbersome, it is possible to set the password timeout higher (add Defaults passwd_timeout=10 to /etc/sudoers using the command sudo visudo)*. This would dissuade intrusion, unless the attacker has physical access. No measure of security can overcome PEBKAC.
*this tip from ubuntuforums thread 229309
daakadence
January 27, 2011
#19
thanx cafehunk for your suggestion! I was stuck with this issue for a while..
Shubham
March 8, 2011
#20
works in ubuntu 11.04 beta2
<3ubuntu
April 25, 2011
#21
Consider keeping an open shell/editor session su'd as root while you experiment so that you don't accidentally lock everyone out of being able to sudo (and consequently have no way of reverting the change!). #LFMF
Phoenix
May 2, 2011
#22
cool
saurabh
May 17, 2011
#23
Nice
Core
July 17, 2011
#24
Although there is a small security issue with removing passwords from sudo, there is a much bigger security issue... passwords themselves. Password re-use is a bigger problem than password entrapy. Most people have less than 5 passwords but use 100+ websites and other PCs.
My home PC has a password to log in with a keyboard, but as soon as I find a way to do log in with a dongle, I'm going to remove password access all togeather. All servers such as SVN and PostgreSQL on my PC are OS user based.
Phil
July 21, 2011
#25
Works fine........ gr8 Tip. Helped me alot
Laxminarayana
August 5, 2011
#26
faltou antes chmod +w /etc/sudoers
acrecenta a linha
e chmod-w /etc/sudoers
charles
August 8, 2011
#27
Works with Ubuntu 11.04 Desktop i386.
tobascoman
August 11, 2011
#28
PS remember to change it back, otherwise you have a security issue. If you read this tip in the wrong place maybe your IP address and who knows your login name as well are now out there.
Would you leave your hall door open while playing in the back garden with your dog? - hm, maybe you don't have a garden; maybe you don't have a dog ; maybe you don't have a hall door :-)
tobascoman
August 11, 2011
#29
The technique work on OS X, too. Maybe it works on all *nix-like OSes with /etc/sudoers files? Anyway, OS X has prototype lines in the file clearly commented like, "Uncomment to allow all people in group wheel to run all commands". There are other ones for per user, etc. Makes it easy to eliminate security. Who cares about security, anyway? Don't you leave your front door open? i do.
AK
September 12, 2011
#30
Very important! Add it at the END of the file!
It doesn't work if you add it at the top.
READ.
Dagelf
November 13, 2011
#31
thank you..it works fine
aj
November 15, 2011
#32
Thanks, very helpful. I use an Ubuntu virtual machine to record screencasts and with this I don't have to enter my password all the time during recordings.
Stefan
December 13, 2011
#33
NEVER edit /etc/visudo directly, as charles suggested. If you do something wrong, which creates a syntax error, then you can't use sudo to change it back... Use visudu to change that file, it checks for syntax errors and warn you if needed. (One syntax error is if there is no empty line after the last line, but there are also other syntax errors.)
A better idea is to specify those commands you want to run without password, and have sudo ask for password for other commands.
username ALL=NOPASSWD: /usr/bin/apt-get
visudo
December 24, 2011
#34
No a member just stumbled accross the thread & had to give props for the only honesy accurate advice Ive heard yrt ! Some people seem to think there GOD of the info of somethin ? We all started somewhere ~ Cheers
ThaddeusCanada
January 24, 2012
#35
walterpops01@aim is my most reg e.mail if either of you wanna pass along any more insightful advice of reccommendations ? My nex project is a full WIPE, SCAN, PARTITION, & Running several O.S. and obviouly some more indepth details I know I need advice !
ThaddeusCanada
January 24, 2012
#36
????? ???? ??? ??? ????????
Thank you very much for this information
????
February 1, 2012
#37