On Sun, Jul 18, 2010 at 1:46 PM, JD <jd1008@xxxxxxxxx> wrote: > On 07/18/2010 09:45 AM, Vitor Carlos Flausino wrote: >> Another approach is to say that that particular command can be ran by that particular user without prompting for a password: >> >> 1-type "visudo" >> 2-add the following line at the end of the file: >> <user> ALL= NOPASSWD:<command> >> 3-you may also need to comment line: >> Defaults requiretty >> >> And that's it >> >> -vcf >> >> -----Mensagem original----- >> De: users-bounces@xxxxxxxxxxxxxxxxxxxxxxx [mailto:users-bounces@xxxxxxxxxxxxxxxxxxxxxxx] Em nome de Clemens Eisserer >> Enviada: domingo, 18 de Julho de 2010 13:52 >> Para: Community assistance, encouragement, and advice for using Fedora. >> Assunto: Howto script "sudo"? >> >> Hello, >> >> Is it possible to pass "sudo" the root-password in some way (I would >> prefer plaintext)? >> >> The reason is I use an umts-connection utility which has to run as >> root, and I don't want to have my parents type a root-password every >> time they connect to our ISP. For now I simply didn't set a >> root-password, and choose "run as: root" in KDE, but I really dislike >> this solution. >> >> Thank you in advance, Clemens > This is way too much of an overkill. > The poster of the question needs only to allow one command executed > which is some command to start up umts connection. > > UserName ALL=FullPathnameToUmtsCommand NOPASSWD: > FullPathnameToUmtsCommand Why do you have the umts command twice? Either user ALL=(root) NOPASSWD: /path/to/umts_command or user localhost=(root) NOPASSWD: /path/to/umts_command -- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines