On Mon, Jul 11, 2016 at 1:13 PM, bruce <badouglas(a)gmail.com> wrote:
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/*.*
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....
# visudo -f /etc/sudoers.d/dog
dog ALL=(cat) NOPASSWD: /cat/*.*
[AFAIK, "/cat/*" should be enough]