raman Posted June 18, 2009 Share Posted June 18, 2009 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.. Quote Link to comment Share on other sites More sharing options...
Maq Posted June 18, 2009 Share Posted June 18, 2009 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. Quote Link to comment Share on other sites More sharing options...
raman Posted June 19, 2009 Author Share Posted June 19, 2009 But suppose I have to give them the root password, because of some reasons , is it somehow possible in that case ? Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted June 19, 2009 Share Posted June 19, 2009 I don't think you should ever log in as the root user. Quote Link to comment Share on other sites More sharing options...
Maq Posted June 19, 2009 Share Posted June 19, 2009 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. Quote Link to comment Share on other sites More sharing options...
trq Posted June 19, 2009 Share Posted June 19, 2009 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.