Re: Howto script "sudo"?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/18/2010 08:51 AM, Clemens Eisserer wrote:
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

Add the user to the 'wheel' group, then run visudo and un-comment this line:

## Same thing without a password
%wheel  ALL=(ALL)       NOPASSWD: ALL

That's the easy-lazy way that lets them run anything with the word sudo in front of it.

You could get a bit more secure, something like...

username  localhost=/path/to/command -options   NOPASSWD:ALL

I have obviously been easy-lazy about this as I am not 100% on the syntax. Enjoy!

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

-- 
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
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux