LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Accessing users home directory with sudo access..How to block this ? (https://www.linuxquestions.org/questions/linux-newbie-8/accessing-users-home-directory-with-sudo-access-how-to-block-this-940823/)

sujithspillai90 04-20-2012 07:21 AM

Accessing users home directory with sudo access..How to block this ?
 
I have one confusion for accessing other users home directory with sudo root access....is there any way to block accessing other users home directory?

Let me explain the scenario below:

I have two users A and B.I have given sudo to root access(passwordless) for both the users.With this sudo as root access user A can access B's home folder and vice versa. Here comes my doubt.

If I don't want user B accessing user A's home directory with sudo root access, what is the permission that I need to setup.?

I am not sure if it is possible. Please could anyone help me to come out of my confusion.

I understand that superuser have complete access.But is there any way to block user B accessing user A's home directory.



Thanks,
Sujith

acid_kewpie 04-20-2012 07:25 AM

you need to NOT give them root access in the first place. Even if you could make this happen, which you can't, your users would still have access to the sudoers file anyway, so they could change the file back...

you either need to give fine grained permission to specific functions, or you acknowledge they have root access and ask them to act responsibly.


All times are GMT -5. The time now is 01:19 PM.