Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-08-2006, 11:06 AM
|
#1
|
Member
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834
Rep:
|
No password for sudo?
How would I setup my user and system so that I wouldn't have to input my password when I sudo?
Thanks!
|
|
|
05-08-2006, 11:08 AM
|
#2
|
Member
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536
Rep:
|
You put "NOPASSWD:" before the list of commands, like it says in the man page.
|
|
|
05-08-2006, 11:32 AM
|
#3
|
Member
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834
Original Poster
Rep:
|
I ran visudo as root and added NOPASSWD: before my username, as it is the only entry in there besides root, and it said that there was a syntax error. I'm not entirely sure what you mean, can you explain with a little more detail please?
Thank you for your help!
|
|
|
05-08-2006, 12:09 PM
|
#4
|
Member
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536
Rep:
|
NOPASSWD goes before the list of commands, after your username and host list. The man page has this example:
Quote:
ray rushmore = NOPASSWD: /bin/kill, /bin/ls, /usr/bin/lprm
|
|
|
|
05-11-2006, 12:11 PM
|
#5
|
Member
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834
Original Poster
Rep:
|
What if I would like a user to execute any command with sudo?
I'm not sure what man page you are referencing, I haven't seen this information anywhere :P
|
|
|
05-11-2006, 02:05 PM
|
#6
|
Member
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536
Rep:
|
You can use the ALL keyword, e.g.
Note that this is potentially dangerous (ANY command can be run as root), so use with care!
The man page is sudoers(5).
|
|
|
05-11-2006, 02:17 PM
|
#7
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467
Rep: 
|
I put in visudo:
dave ALL=(ALL) NOPASSWD: ALL
|
|
|
05-11-2006, 08:23 PM
|
#8
|
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545
Rep:
|
It'll work but as has been said above, not the brightest idea on earth.
|
|
|
05-11-2006, 08:42 PM
|
#9
|
Member
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834
Original Poster
Rep:
|
It's just a personal laptop that only I use ... would there still be a reason that it's a bad idea?
|
|
|
03-18-2012, 10:08 AM
|
#10
|
Member
Registered: Jul 2007
Location: Belgium, Heist-op-den-Berg
Distribution: Debian, Mageia, Windows, Puppy, and about 50 others on or off
Posts: 77
Rep:
|
sudoers
In de sudoers of Lucid, I added
bert ALL=(ALL) NOPASSWD: ALL
This works well on Lucid.
But it does not work on Debian 6.04, openSUSE 11.4, Mageia 1, Linux Mint 11 & Linux Mint 12.
What need I do to make it work?
Any one?
Bert.
|
|
|
All times are GMT -5. The time now is 09:57 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|