LinuxQuestions.org
Help answer threads with 0 replies.
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 08-15-2014, 12:02 AM   #1
majestik33
LQ Newbie
 
Registered: Aug 2014
Posts: 10

Rep: Reputation: Disabled
Problems understanding /etc/sudoers


According to the documentation, modifications of this file may enables local users to execute sudo commands on remote machines:

user1 192.168.1.14=(user2:group1) ALL

According to what I read, this entry enables user1 to execute all commands on the host with the IP 192.168.1.14. How can this be possible?

I also have problems understanding what does running commands as different users means?
 
Old 08-15-2014, 08:35 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,665
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
No, nothing that you do on one machine can give you elevated permissions on that machine, unless that machine also gives consent.

In practice, many enterprises simply use LDAP to control everything ... authentication and authorization ... across the enterprise. In that context, the sudoers file might not be used at all.
 
Old 08-16-2014, 11:00 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,901

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
Quote:
Originally Posted by majestik33 View Post
I also have problems understanding what does running commands as different users means?
Programs (commands) usually have no rights by themselves, but the users who tried to execute. So if I execute ls (or whatever) it will use my own actual status during execution. running commands as different users means the command should be executed as a different (usually a specified) user.
 
  


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
Problems understanding /etc/sudoers file majestik33 Linux - Newbie 1 08-15-2014 12:23 AM
Fedora /etc/sudoers file and sudoers.d directory davejjj Linux - Newbie 2 10-21-2011 06:19 PM
/etc/sudoers syntax problems with %groupname dthacker Linux - Security 3 02-02-2010 10:47 AM
sudoers and guarddog problems A89ion Linux - Newbie 4 07-28-2007 08:22 AM
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

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

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