LinuxQuestions.org
Visit Jeremy's Blog.
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-24-2013, 03:11 PM   #1
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debian
Posts: 2,127
Blog Entries: 1

Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
Sudoers file


Hi

I have noticed different Sudoers files amongst distros. Are there different versions or is there just the 1 which is adapted by distro mainters/builders
 
Old 04-24-2013, 03:59 PM   #2
hendomen
LQ Newbie
 
Registered: Nov 2010
Location: Warrenton, Va.
Distribution: FC20(Mate), CentOS 6.5(Gnome 2). Linux Mint 17 (Mate)
Posts: 9

Rep: Reputation: Disabled
Red Hat,Fedora,CentOS you can use a script from Dagermouse @ su -c 'yum -y --nogpgcheck install http://dnmouse.org/autoplus-1.4-5.noarch.rpm' Will set sudo with no password.
 
Old 04-24-2013, 04:06 PM   #3
Nbiser
Member
 
Registered: Oct 2012
Location: Maryland
Distribution: Fedora, Slackware, Debian, Ubuntu, Knoppix, Helix,
Posts: 302
Blog Entries: 7

Rep: Reputation: 44
I think that it is standardized.
 
Old 04-24-2013, 04:19 PM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debian
Posts: 2,127
Blog Entries: 1

Original Poster
Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
Hi

What do you mean standeardized I have debain sudoers with 25 lines and ubuntu with alot more
 
Old 04-24-2013, 06:10 PM   #5
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
I couldnt resist
Attached Thumbnails
Click image for larger version

Name:	537836_10151505883128956_397697086_n.jpg
Views:	25
Size:	47.7 KB
ID:	12394  
 
Old 04-24-2013, 07:02 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Nice

RE OP; the sudoers format is std but the content can vary.
This applies to many cfg files.
 
Old 04-24-2013, 09:01 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
you missed 149
Code:
 sudo "make me a sandwich "
http://xkcd.com/149/

there is a reason that fedora,cent, and "RHEL Desktop" do not use "sudo"
and setting it up with NO password is a very bad idea

for a single user install it is NOT worth the very huge security risk

now if you have 10 people in the office and you DO NOT want to give out your root password
it is a VERY GOOD idea to use sudo , that is what it is intended to be used for
 
1 members found this post helpful.
Old 04-28-2013, 04:43 AM   #8
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debian
Posts: 2,127
Blog Entries: 1

Original Poster
Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
Hi

I was not looking at setting no paswords or anything, i can edit the files as I need. It was the content of the file I looked again and debain has a short sudoers file where the others is much more complex,
I was just wondering. Thats why I asked if there where 2 versions of the file, or was debains version Edited by the builders of system.
 
Old 04-28-2013, 06:06 AM   #9
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
If you did check the manual of sudoers, it has description of Sudoers file format in it: http://linux.die.net/man/5/sudoers

As per manual:
Quote:
The sudoers file is composed of two types of entries: aliases (basically variables) and user specifications (which specify who may run what).
So as far as I am concerned, this basic part remains same throughout all distros, and remaining part keep changing according to the preferences set by the distro.
 
Old 04-28-2013, 06:30 AM   #10
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
That you see difference between distros is normal. For example, while Ubuntu (and derivates) make excessive use of sudo, to the point that you can't even login as root without manually setting a password for that account, Debian in the default configuration doesn't use sudo. So Ubuntu must have a different configuration for sudo by default than Debian or other distributions that don't use sudo.
 
Old 04-28-2013, 07:59 AM   #11
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: OpenBSD
Posts: 1,644
Blog Entries: 8

Rep: Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577
Quote:
Originally Posted by hendomen View Post
Red Hat,Fedora,CentOS you can use a script from Dagermouse @ su -c 'yum -y --nogpgcheck install http://dnmouse.org/autoplus-1.4-5.noarch.rpm' Will set sudo with no password.
Then what would be the point of having "root" and the security of the Linux file system? Forgive my ignorance, but I fail to understand why anyone would want to throw out all of their system's security.
 
  


Reply


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
[SOLVED] User not in sudoers: How to add user? Permtion Denied for sudoers file esgol Linux - Newbie 3 07-13-2012 08:44 AM
Fedora /etc/sudoers file and sudoers.d directory davejjj Linux - Newbie 2 10-21-2011 07:19 PM
help with sudoers file blancs Linux - Newbie 4 07-25-2008 06:42 PM
Sudoers File Help Harlin Linux - Software 1 03-15-2006 05:16 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 06:03 PM


All times are GMT -5. The time now is 04:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration