Date: 09-10-07 19:08
Sometimes I want certain users to be able to use certain commands, via sudo without supplying a password. The /usr/local/etc/sudoers entry looks something like this:
bacula ALL=NOPASSWD:/home/dan/bin/dlt-write sa0
This command grabs the write stats from the DLT drive. But you need root privs for that. Hence the sudo.
Now, how can you test this from the command line? Like this:
su -m bacula -c /home/dan/bin/dlt-stats