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.
I'm just learning about the sudoers file and how to write it. It seems useful but unwieldy. I seem to have a choice between specifying programs and users granularly one by one or giving blanket permissions to everyone for everything. Even though I'm just working on my own system and don't have any other users to worry about, I wonder what the best practices are. How do you handle your "sudoers"?
I am trying to get out of the habit of using su all time. Fedora now ships sudo on by default, so I'm trying to behave - but the password request timeout annoys the hell out of me, so I tend to make it 90 minutes.
Personally I don't think sudo offers much more in the way of security, but I digress.
Edit: didn't answer the question. I make sure I'm in the admin group, that way I can do anything without futzing with visudo. Just add the timeout for my own convenience.
Distribution: Mainly Devuan with some Tiny Core, Fatdog, Haiku, & BSD thrown in.
Posts: 5,014
Rep:
You assign yourself the programs that you need to use regularly.
But sudo is capable of a lot more than that. It is designed for large institutions/companies with thousands of users, multiple sysadmins responsible for only a few tasks, & every command used by every admin is logged.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.