How to let several users log in to the internet - without root password
FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
How to let several users log in to the internet - without root password
I am using Fedora 6, and use
/usr/bin/system-config-network to connect my dial-up
modem to the internet. the program is owned by 'root'
I would like all my users to use this pgm to log into the internet. They of course, do not have the
'root' password. The program always asks for the
root password to run this program.
I have changed the 'Properties' of the program to
allow 'read' 'write' and 'execute' for all users.
However, this does not solve the problem.
I suggest you edit sudoers to allow all users to execute this program as root. In this case, they will be prompted only for their own passwords. You can even eliminate the need for the users’ password (though it’s not recommended).
man 5 sudoers
An alternative method (which I STRONGLY suggest you don’t use) is to mark the SETUID bit on the file (and make sure the user owner is root). That way anyone who executes it will have root permissions.
One thing I love about Linux, there's no end to "ways" to get things done. Here's a couple more. In /etc/passwd you will see your users listed beginning with 500, and up. If you change that to 0 when that person logs in, he will have root, but your root password will not have been revealed to him.
Another: chmod u+s will make the program RUN as root, no matter who started it. Niether of these are "safe", but there are always trade-offs of one kind or another, right?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.