Skip to main content

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.

code:
sudo /path/homeauto
actually, have command in .bashrc , won't there enter password when system boots (see specifics below.)

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

code:
<username> localhost = nopasswd: /path/to/command
should do.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] sudoers, add specific command to run as root without password


Ubuntu

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account