Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
It's not that people are scared of text files... but why open the file, find the line, edit and save and still have the possibility to screw it up? Why not just use the tool and be correct?
[root@sls-dc4p3 home]# gpasswd -a jon_k wheel
Adding user jon_k to group wheel
[root@sls-dc4p3 home]# su jon_k
[jon_k@sls-dc4p3 home]$ su
Password:
su: incorrect password
[jon_k@sls-dc4p3 home]$ su
Password:
su: incorrect password
[jon_k@sls-dc4p3 home]$
The thing about this system is that su has been disabled. If you are using pam, a lot of linux users are and don't even know it, then check the su config file in pam and it should have something like this.
In fedora core 2 it's in /etc/pam.d/su. Add this line
Then only those in the wheel group will be able to use su. Everyone will still be able to run it. But everyone not in the wheel group will get an incorrect password response, no matter what password you enter, does not matter if it is correct or not.
I'm looking for something similar. I have a post in another part of the board about su and wheel group. but I do not want to disable su for some people.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.