LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-20-2012, 07:21 AM   #1
sujithspillai90
Member
 
Registered: Jun 2011
Location: India
Posts: 31

Rep: Reputation: Disabled
Question 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

Last edited by sujithspillai90; 04-20-2012 at 07:24 AM.
 
Old 04-20-2012, 07:25 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sudo with hidden files in home directory pjk1939 Arch 4 08-18-2011 02:01 PM
[SOLVED] Need sudo for users but only +r on other /home/users Ubuntu 10.04 sundry_50 Linux - Security 3 11-07-2010 07:22 PM
trying to block users from accessing web site with iptables Histamine Linux - Security 2 08-10-2007 08:36 AM
need to restrict users access to own home directory afgs_uk Linux - Security 2 11-08-2006 11:18 AM
accessing of directory using sudo users abhis_mail2002 Fedora 3 02-22-2006 03:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration