LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 08-24-2015, 09:05 PM   #1
Logomachist
LQ Newbie
 
Registered: Aug 2009
Posts: 28

Rep: Reputation: 0
Question How do you handle your sudoers file?


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"?
 
Old 08-24-2015, 09:08 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,310
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
I use su, but then I don't have to deal with multiple users.

This article looks like it would be useful to you if you are administering a network: http://www.admin-magazine.com/Articl...-and-PolicyKit

Last edited by frankbell; 08-24-2015 at 09:11 PM.
 
Old 08-24-2015, 09:51 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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.

Last edited by syg00; 08-24-2015 at 10:10 PM.
 
Old 08-25-2015, 05:14 AM   #4
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,478

Rep: Reputation: Disabled
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.
 
  


Reply

Tags
sudo, sudoers


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/etc/sudoers file devUnix Linux - General 2 08-30-2013 04:22 AM
[SOLVED] User not in sudoers: How to add user? Permtion Denied for sudoers file esgol Linux - Newbie 3 07-13-2012 07:44 AM
Fedora /etc/sudoers file and sudoers.d directory davejjj Linux - Newbie 2 10-21-2011 06:19 PM
I deleted /etc/sudoers and creates a new file call sudoers but now it doesnt for visu abefroman Linux - Software 1 11-10-2005 05:03 PM
The Sudoers File Rubicone Linux - Security 0 05-02-2002 06:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration