Jump to content

linux restrict root user rights


raman

Recommended Posts

I have full administrator (root) rights on my Linux machine, but my employees also have the root password, because sometimes they need to do something on it.

 

but I want that they should not have access to a specific directory in which I keep my confidential documents.

 

Is it possible that I can only allow the user with my name and bar all other users including the root from seeing that directory itself or the contents of the directory if they mange to enter into the directory..

Link to comment
https://forums.phpfreaks.com/topic/162761-linux-restrict-root-user-rights/
Share on other sites

But suppose I have to give them the root password, because of some reasons , is it somehow possible in that case ?

 

That's what sudo is for.  You assign settings for certain users to execute as root.  You can Google sudoers, like I mentioned before, and get all the information you need.

But suppose I have to give them the root password, because of some reasons , is it somehow possible in that case ?

 

There are no reasons to ever need to give anyone the root password.

 

You could however encrypt the directory in question using a tool such as EncFS. I would however, setup your machine and permissions properly instead.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.