Re: somewhat OT: sudo question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 9 Sep 2010 23:31:49 -0500 JD <jd1008@xxxxxxxxx> wrote:

> 
> 
> On 09/09/2010 09:25 PM, JD wrote:
> >
> >
> > On 09/09/2010 09:09 PM, Gregory Hosler wrote:
> >> Granting administrator privileges is not done gratuitously. Having 2 
> >> entries,
> >> for 2 different types of requirements is totally sane.
> >>
> >> Having said that, the sudoers manpage gives an example with one line 
> >> combining both.
> >
> > Would this do it?
> >
> > maitra    ALL=(ALL)      NOPASSWD: 
> > /usr/sbin/pm-hibernate,/usr/sbin/pm-suspend , PASSWD: ALL
> That generated a syntax error.
> I modified it to
> maitra    ALL=(ALL)      
> NOPASSWD:/usr/sbin/pm-hibernate,/usr/sbin/pm-suspend , PASSWD:ALL
> 
> i.e., removed the space after the colon
> and that took care of it.
> 
> Rajan, try it and let us know.


No, this does not work, but this one does:

maitra	ALL=(ALL) PASSWD:ALL, NOPASSWD:/usr/sbin/pm-hibernate,/usr/sbin/pm-suspend

Basically, I believe that we need the PASSWD to be before the NOPASSWD case, since otherwise ALL trumps these commands.

Ranjan


-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux