I am trying to get rid of the password prompt in Ubuntu Linux, during the "su" command. Basically, I need to do something like:
to enable a few of my applications to run in batch mode. However, since it runs in batch, I would like to disable the password prompt.
What I have tried to do is:
sudo visudo otheruser ALL=(ALL) NOPASSWD: /bin/su
but this still asks me for the password.
For example, to disable sudo from asking a password, I did:
sudo visudo otheruser ALL=NOPASSWD: ALL
and it works fine. However, when I try this with su, it does not work.
Has anyone encountered this problem? Any guidance would be much appreciated.