Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I don't want users to be able to run the 'su' command, but am not sure the best way to do this. I thought I might remove su from /bin to /sbin, but I don't know if that is a good thing to do or not.
I also thought I might set the permissions differently. I only want root to be able to run it.
For one thing, root would never need to run su (unless you really wanted root to act as another user) but yes, chmodding su to stricter permissions should do what you want. Change it to "RWX --- ---"
su'ing to a user is quite handy. If I su to root, I need to give a password. Rather than dropping back to myself to perform a user function, I'll su to myself (no password required) then exit back. Makes life simpler.
su'ing to a user is quite handy. If I su to root, I need to give a password. Rather than dropping back to myself to perform a user function, I'll su to myself (no password required) then exit back. Makes life simpler.
That is a really interesting concept that I hadn't thought of. Thanks! It may come in handy to keep in mind.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.