in reply to Re: sudo setting to read auth log
in thread sudo setting to read auth log
The permission is 600. Running it as root works fine. I have in /etc/sudoers:
Host_Alias THIS=thishost User_Alias BB=bbuser Cmnd_Alias BB_C=/usr/local/bbuser/ext/bb-audit.pl, /usr/bin/perl BB THIS=NOPASSWD:BB_C
No ACL or roles are involved.
The bash script just runs
sudo /usr/local/bbuser/ext/bb-audit.plI've even tried putting in "/usr/bin/perl" after the sudo. It still fails when trying to open the log file. Doing a sudo -l as the bbuser does show that bbuser can run as root those commands above. So, I don't believe it is an "error" in sudo.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: sudo setting to read auth log
by JavaFan (Canon) on Apr 16, 2012 at 16:31 UTC | |
by BradV (Sexton) on Apr 17, 2012 at 09:54 UTC |