Re: [SOLVED] sudo troubles

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

 



On 17 Feb 2013, at 17:23, Scott van Looy <scott@xxxxxxxxxxx> wrote:

> Hi,
> 
> I have some odd issues with sudo, specifically trying to execute a command without being asked my password:
> I've created a new file in /etc/sudoers.d/ called node
> In that file is:
> scott ALL=(root) NOPASSWD:NOEXEC: /usr/local/bin/forever
> I was expecting I'd now be able to execute "forever" and I'd not be asked for a password. Is there something I've obviously done wrong?
> 
> Last time I edited the sudoers file directly, but I noticed things have moved on since then but I can't find any examples of how.
> 
> I notice there's an option "secure_path": adding /usr/local/bin to it doesn't seem to change anything though.

I originally created the file in vi. I had made sure it was owned by root and had perms of 440, so I thought it'd be fine. In frustration I deleted it and recreated it in visudo and it worked.

Weird.
-- 
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
Have a question? Ask away: http://ask.fedoraproject.org


[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