LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-04-2014, 07:33 AM   #1
axelmunt
LQ Newbie
 
Registered: Dec 2014
Location: I live in France Grenoble at the foot of the Alps
Distribution: fedora, centos, redhat, ubuntu
Posts: 3

Rep: Reputation: Disabled
Purpose of entry root in sudoers


what is the purpose in suduoers configuration file of the following entry ?
root ALL = (ALL) ALL

I thought root had all these rights regardless of sudo

In order to prove this point I commented this entry with visudo
and tried to modify the following file :

-rw-r--r--. 1 test1 test1 14 Dec 4 11:58 test


as the user axel : impossible as expected
as axel -> su to root ossible and I did not have su to user test

Thanks
Axel

Last edited by axelmunt; 12-04-2014 at 10:54 AM.
 
Old 12-04-2014, 08:46 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,311
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
I think these two articles, taken together help clarify this question.

sudo has other uses besides executing root commands; "su" does not mean "super user," as many have concluded (with some reason); it means "substitute user." That entry gives root the rights to sudo as other users, as I understand it. Of course, if I'm off the mark, someone with certainly come along to correct me.

http://www.garron.me/en/linux/visudo...lt-editor.html

http://itg.chem.indiana.edu/inc/wiki/software/165.html
 
Old 12-05-2014, 05:33 AM   #3
axelmunt
LQ Newbie
 
Registered: Dec 2014
Location: I live in France Grenoble at the foot of the Alps
Distribution: fedora, centos, redhat, ubuntu
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for your reply

But I still do not understand the need for the line

root ALL = (ALL) ALL

in the configuration file

When this line is commented out
root can still perform as it ought to
for example it can modify a file it does not own nor is it a member of its group.

Thank you
 
Old 12-06-2014, 10:47 AM   #4
axelmunt
LQ Newbie
 
Registered: Dec 2014
Location: I live in France Grenoble at the foot of the Alps
Distribution: fedora, centos, redhat, ubuntu
Posts: 3

Original Poster
Rep: Reputation: Disabled
Someone provided the answer in another forum

"Yes, sudo does not give the root user any increased access but there is a logging feature of sudo that may be useful to some."
 
1 members found this post helpful.
  


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
Sudoers entry but still asking password sammckee Linux - General 6 05-01-2014 05:23 PM
What's the purpose of using sudo as root on Ubuntu? yzT! Ubuntu 6 02-20-2014 07:33 AM
Sudoers - root question armandino Linux - General 4 03-05-2009 06:57 AM
Entry into group files (sudoers) Lazairus Linux - General 3 08-28-2008 08:05 AM
How to done entry in sudoers file??? rktech83 Linux - Security 1 03-29-2006 08:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:53 AM.

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