Jump to content

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

The proper way to handle this is to add them to the sudoers list.  That way you don't have to give them the root password and you can adjust settings for each user in the list.  Google "Sudoers" and there should be some helpful results.

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.