LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-19-2016, 10:50 PM   #1
bluesclues227
LQ Newbie
 
Registered: Apr 2016
Posts: 25

Rep: Reputation: Disabled
Visudo and Default_Entry lines


Hi I'm need some help regarding Visudo configuration, I'm not sure where the Default_Entry lines go? Is it specific on the type of Default_Entry? i.e. Defaults (not sure what this Default_Type stands for?) Defaults@ (Host_List),Defaults: (User_List),Defaults! (Cmnd_List),Defaults>(Runas_List)
 
Old 04-20-2016, 12:58 PM   #2
Mitt Green
Member
 
Registered: May 2014
Location: Europe
Posts: 199

Rep: Reputation: 116Reputation: 116
/etc/sudoers varies from distro to distro; Debian provides this
Code:
Defaults        env_reset
Defaults        mail_badpass
Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
From examples:
Quote:
Defaults syslog=auth
Defaults>root !set_logname
Defaults:FULLTIMERS !lecture
Defaults:millert !authenticate
Defaults@SERVERS log_year, logfile=/var/log/sudo.log
Defaults!PAGERS noexec
 
Old 04-21-2016, 12:45 AM   #3
bluesclues227
LQ Newbie
 
Registered: Apr 2016
Posts: 25

Original Poster
Rep: Reputation: Disabled
I am using a Debain based distro, so my layout looks similar.. So are you saying any Default_ Entries I wish to apply go straight under those default Default_Entries lines that are already there? Does order matter? Also what if I want to over-ride the Default_Entries lines, where would that go? Does any know where I can find comprehensive detailed explanation of this? I understand the details just not the order placement in the file where all Default_Entries go...

Last edited by bluesclues227; 04-21-2016 at 01:07 AM.
 
Old 04-21-2016, 09:01 AM   #4
Mitt Green
Member
 
Registered: May 2014
Location: Europe
Posts: 199

Rep: Reputation: 116Reputation: 116
I'm pretty sure, that man sudoers will answer all of your questions.
 
  


Reply



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
[SOLVED] visudo fatalerror0x00 Linux - Newbie 7 11-25-2012 12:55 AM
Hi, problem in visudo rajini23 Linux - Desktop 8 07-04-2012 02:05 AM
visudo noonmid27 Linux - Newbie 8 02-23-2007 04:42 PM
Need help with visudo powadha Debian 2 12-19-2004 05:04 AM
visudo xviddivxoggmp3 Slackware 7 08-17-2004 08:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:28 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