Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2nd August 2010, 04:24 AM
OralDeckard Offline
Registered User
 
Join Date: Nov 2006
Posts: 474
linuxfirefox
Question How do I SUDO with no password ?

When I use visudo, this works:
users ALL=/usr/bin/system-config-soundcard

But this does not:
users ALL=/usr/bin/system-config-soundcard NOPASSWD: ALL

I made it just like the example in visudo, but every time I exit I get an error:
>>> sudoers file: syntax error, line 87 <<<

I have tried it on several machines and always get the same thing, yet it is exactly like the example. Has anyone got an Idea what I am doing wrong ?
Reply With Quote
  #2  
Old 2nd August 2010, 04:36 AM
Adunaic's Avatar
Adunaic Online
Registered User
 
Join Date: Mar 2009
Location: Lancaster, UK
Posts: 883
linuxfedorafirefox
Re: How do I SUDO with no password ?

I have no idea what you are doing wrong, but dangermouse's autoten will do it for you:
http://guides.homelinux.com//viewtopic.php?f=2&t=105
Reply With Quote
  #3  
Old 2nd August 2010, 04:58 AM
OralDeckard Offline
Registered User
 
Join Date: Nov 2006
Posts: 474
linuxfirefox
Re: How do I SUDO with no password ?

Thank you, but I finally got it. The solution is to disregard the examples in viduso and put the NOPASSWD: between users% and /usr/bin/system-config-soundcard. The examples are apparently wrong.
Reply With Quote
  #4  
Old 2nd August 2010, 08:01 AM
marriedto51 Offline
Registered User
 
Join Date: Jul 2009
Location: England, UK
Posts: 821
linuxfedorafirefox
Re: How do I SUDO with no password ?

I have never quite understood the syntax of the sudoers file either, but I think the error might be that after the "ALL=" you should have a target user list, not a command list. For example, in our sudoers we have
Code:
Runas_Alias NONROOTUSERS jim, harry, mary
...
%sudo    ALL=(NONROOTUSERS)     NOPASSWD: ALL
which lets members of group sudo become any target user in the list NONROOTUSERS to execute any command without password.

In any case, if it's now working, why fix it ;-)
Reply With Quote
Reply

Tags
password, sudo

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
System/Administration Menu not prompting for password, then saying wrong password soylentman Using Fedora 7 13th September 2009 12:29 AM
Sudo password timeout AnimeFreak Security and Privacy 7 21st January 2009 11:26 PM
Is there a way to use sudo password with the gui (gnome)? Thaidog Using Fedora 1 14th January 2009 02:41 AM
Using kdesu or sudo without password Krister Hallerg Using Fedora 17 11th March 2007 05:35 AM
what is the sudo password? acerfedora Using Fedora 7 22nd July 2006 04:43 PM


Current GMT-time: 13:14 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat