LinuxQuestions.org
Review your favorite Linux distribution.
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 03-10-2016, 06:52 AM   #1
sunnysthakur
Member
 
Registered: Aug 2012
Posts: 92

Rep: Reputation: Disabled
Role based access and security


Hello,

We are planning to setup a Role based access and security to our Linux servers. We can use mostly use sudo for providing the limited access to service and files.
My query is that how can we manage that members can edit/access only specific files (it would be 1 or multiple files or placed on multi location), This seems to be very hectic if can manage from sudo to add all the entries there.

Can you please let me know the better solution for this as we have a sub teams and that team would have multiple members working for various areas.

Is ACL would be a better option somehow ?
 
Old 03-10-2016, 07:52 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Basic users and groups along with file permissions are designed for this kind of control.

ACLs give you even more control.

What you do NOT want to do is give "sudo vi" or similar unless you've turned off shell escapes.

What we do here for many things is make them owned by an administrative account (e.g. developer, oracle, specialapp, etc...) then simply grant real users access to do "sudo su - <adminacct>". This will log which real user became that adminacct (but not what they did after they became that adminacct). We do not give out passwords for the adminacct itself. (i.e. No one can login directly as adminacct - they must use sudo). For most purposes if something occurs finding who most recently became that adminacct and looking at shell history lets us know what was done.
 
1 members found this post helpful.
Old 03-10-2016, 07:58 AM   #3
sunnysthakur
Member
 
Registered: Aug 2012
Posts: 92

Original Poster
Rep: Reputation: Disabled
So in case you have to provide some of conf file under /etc [Samba,dns, apache,mysql,svn..etc] access to Linux admin so that they can edit the file and restart the services as well, then we have to change the group permission of these files to the group whose members can do so.
And these files and services will also be added to sudo as well ? If yes then you have to mention each file in sudo, which this group can change or alter
 
Old 03-10-2016, 09:11 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
What I did for httpd.conf once was give the user his own copy of httpd.conf.

I then wrote a script that:
1) Saved the original /etc/httpd.conf to date stamped copy so I could back out if user screwed it up
2) Copied the user's modified httpd.conf to /etc
3) Set the permissions on the copy to what the original /etc/httpd.conf.

I gave the user access to run that script via sudo. Obviously you want to put the script in a secure location so the user can't edit.

User would update his copy as desired then do sudo to run the script to put his updates into the live /etc directory.

The beauty of this was it logged every time he put a new file in place.
 
Old 03-21-2016, 04:48 AM   #5
sunnysthakur
Member
 
Registered: Aug 2012
Posts: 92

Original Poster
Rep: Reputation: Disabled
Thanks for the workground. This is really 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
giving access to a anonymous ip based access from windows alexarist Linux - Security 2 11-18-2015 02:48 AM
ssh key/id based access vs. password access Skaperen Linux - Security 18 10-03-2012 03:25 PM
LXer: Role-based Access Control in SELinux LXer Syndicated Linux News 0 02-18-2008 09:50 PM
Role-based permissions [42]Sanf0rd Linux - Newbie 3 01-31-2007 12:32 AM
A 3D Strategy based Role playing game for liux :) gizmo_thunder Linux - Games 4 04-23-2004 07:39 PM

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

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