Thread: sudoers, add specific command to run as root without password
hello all, have need run command root, need ability without entering password when starting program.
actually, have command in .bashrc , won't there enter password when system boots (see specifics below.)code:sudo /path/homeauto
understand can enter line in sudoers file, reading through man page seems overwhelming.
can please help?
thanks, mark.
specifics:
using ubuntu 10.10 server,
have data acquisition board , software wrote (called homeauto) requires root privileges in order access ports on board, sudo /path/homeauto.
changed tty2.conf automatically log me in tty2 when system reboots.
added proper command in home .bashrc file start acquisition program when tty2 logs in.
works, except when system boots, asks password , need bypass step of entering password.
thx
you use udev rules change ownership of ports , give user rights access them without being root. that's proper *nix way.
anyway, writing memory like
should do.code:<username> localhost = nopasswd: /path/to/command
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] sudoers, add specific command to run as root without password
Ubuntu
Comments
Post a Comment