Re: basic sudo/sodoers question

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

 



On 07/11/2016 10:42 AM, Tod Merley wrote:
> .. sounds like something to solve with Linux ownership of files, being
> part of groups, and permissions.  Perhaps start here?
> - https://www.linux.com/learn/understanding-linux-file-permissions 
> 
> On Mon, Jul 11, 2016 at 10:13 AM, bruce <badouglas@xxxxxxxxx
> <mailto:badouglas@xxxxxxxxx>> wrote:
> 
>     Hi.
> 
>     I have two (2) users cat - dog
> 
>     user cat has access to all files in /cat, and the ability to run the
>     apps (*.php)
> 
>     i want to allow user dog to be able to run as user cat, and
>     therefore run the *.php in /cat
> 
>     As far as I can tell, this is a sudo/sudoers issue, where I should
>     be able to set up a user/group to run the apps with no passwd...
> 
>     so... I jumped into visudo, made the change to the sudo/sudoer file
>     (not sure what the file is actually called!).
> 
>     the change I made
>     cat ALL=(ALL) NOPASSWD: /cat/*.*

Try

	cat ALL = (ALL) NOPASSWD: /cat/

(whitespace and just a trailing "/" on the directory).

> 
> 
>     I then did a #su dog
>      whoami -- dog
> 
>     and as user dog...
>       sudo -u cat /cat/aa.php
> 
>     and got a passwd prompt for dog....
> 
>     so what did I miss/screw up....
> 
>     Thanks...
> 
> 
> 
> 
> 
>     --
>     users mailing list
>     users@xxxxxxxxxxxxxxxxxxxxxxx <mailto:users@xxxxxxxxxxxxxxxxxxxxxxx>
>     To unsubscribe or change subscription options:
>     https://lists.fedoraproject.org/admin/lists/users@xxxxxxxxxxxxxxxxxxxxxxx
>     Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
>     Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
>     Have a question? Ask away: http://ask.fedoraproject.org
> 
> 
> 
> 
> --
> users mailing list
> users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe or change subscription options:
> https://lists.fedoraproject.org/admin/lists/users@xxxxxxxxxxxxxxxxxxxxxxx
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org
> 


-- 
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ricks@xxxxxxxxxxxxxx -
- AIM/Skype: therps2        ICQ: 226437340           Yahoo: origrps2 -
-                                                                    -
-     I was married by a judge.  I should have asked for a jury.     -
-                                                   -- Groucho Marx  -
----------------------------------------------------------------------
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://lists.fedoraproject.org/admin/lists/users@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
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