LinuxQuestions.org
Review your favorite Linux distribution.
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 02-05-2018, 08:22 AM   #1
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Question Best way to allow Service Accounts Root Access to conduct work?


Having an issue with some of the third party software that I need to run on some of the RHEL servers. These accounts need to be able to traverse all directories in order to scan or list files.

However these accounts don't have Root access.

Right now, I'm not sure how to securely do this. Do I want to put these service accounts in the Root group?

Is there a better, or more secure way to do this?

thanks
 
Old 02-05-2018, 08:28 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
I would think, similar for any distribution; if there was software running which chose to view all user directories, then it would need to have permissions to do so. Either all the users are of the same group, and this software also is owned by a user with the same group. And then also the group privileges for all the users would allow read and execute privileges for the group. This is probably less safe than using the root account to perform this, because allowing group access across all the users may be contrary to the security of each user's account.
 
Old 02-05-2018, 09:19 AM   #3
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Unfortunately, the vendors don't seem to care about security and don't like when I say no to their ideas.

One of them wants to give their service account the UID of Zero (0), which won't work since that is reserved already by Root. It might work, however it may cause issues in the future along with auditing issues too.
 
Old 02-05-2018, 09:21 AM   #4
tocii.
LQ Newbie
 
Registered: Jan 2018
Distribution: Ubuntu, Mint
Posts: 27

Rep: Reputation: Disabled
I think the best is when you add the user to sudoers text file.
 
Old 02-05-2018, 09:36 AM   #5
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by tocii. View Post
I think the best is when you add the user to sudoers text file.
True, however we want them run run automatically and not have to enter in a password. We don't want to set the NOPASSWD option for these accounts in case they were compromised.
 
Old 02-05-2018, 09:56 AM   #6
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,310
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
You can specify the exact command with the exact parameters in sudoers. Then that is all they can run, nothing more. See the book sudo Mastery for a comprehensive explanation of all the options, or "man sudoers" for the reference material regarding configuration.

Just be careful not to miswrite overly clever patterns. The asterisk does more that you think and should usually never be used. In general, I'd say patterns should be avoided. If necessary, wrap everything in a script and then call that script from sudo.

Last edited by Turbocapitalist; 02-05-2018 at 09:57 AM.
 
1 members found this post helpful.
  


Reply

Tags
rhel, service accounts



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
LXer: Linux 'Code of Conduct' is neither Code nor Conduct LXer Syndicated Linux News 0 03-17-2015 02:11 PM
How to check local accounts have root and user access rights ? ranjithm Linux - Server 3 01-08-2013 04:03 AM
vsftpd read access for user accounts but needs write access ncsuapex Linux - Server 2 04-23-2010 10:51 AM
Adding root privaliges to user accounts or auto login as root Val-Ent Linux - General 15 03-02-2010 04:27 PM
Setting up FAT32 access for non-root accounts in Slack 9? Nicolae Slackware 2 10-22-2003 08:28 PM

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

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