How to limit root access?

Nanashi95

New Member
Joined
Jul 25, 2021
Messages
1
Reaction score
0
Credits
14
Hi.
In an IT company that contains sysadmins, developers & database admins, how can we limit the sysadmin (root) access on a Linux server.
For example:
DBAs has special privileges to data bases. But the sysadmin (root) have the access to those files too even without their passwords, that we don't want this. In windows, you don't have the access to some of the user's files as administrator, I wanna know how can I have this in Linux. Thank you so much.
 


KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
8,616
Reaction score
7,361
Credits
70,058
Root has all the rights. If you can't trust a user with root, don't give them root access. Give them more granular permissions.
 

kc1di

Well-Known Member
Joined
May 14, 2021
Messages
1,537
Reaction score
1,364
Credits
11,087
Root is intended to access all files in the system. If you do not want sysadmins to have that privilege give them only user privileges and allow them to be part of groups you want them to access. Block them from others. If you restrict root access then no one would be able to fix the files in question if they are corrupted. It sounds like you need to be selective in selecting your sysadmins :) How ever that being said this article may be of help limit root
 
Last edited:

dcbrown73

Well-Known Member
Joined
Jul 14, 2021
Messages
365
Reaction score
339
Credits
3,224
Properly configured sudo.

There are only two people who know the root password in my company. The other admins (including those two) use sudo.
 
MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com


Top