I'm trying to run firefox as a different user for security reasons, and I've almost got it except for one fatal snag: I can't get sudo to run without a password. Here's what I'm trying:
I have a user ff setup with its own home directory, and my sudoers file looks something like this:
gaten ALL=(ALL) NOPASSWD: /usr/bin/firefox
I try the following:
sudo -u ff -H /usr/bin/firefox
gaten ALL=(ff) NOPASSWD: /usr/bin/firefox
gaten ALL= NOPASSWD: /usr/bin/firefox
To recap, I'm trying to allow my user (gaten) to run /usr/bin/firefox using the command
sudo -u ff -H /usr/bin/firefoxwithout prompting for a password (as it's in a shell script and I don't want to enter my password everytime I run firefox).