LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-16-2010, 12:43 PM   #1
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
root/user and file/directory permissions


Dear All.

First of all, I want to explain my thoughts:

There is "root" - it can read everything - every file in every directory.

I have a /home/"user" which I need to close from entering to everyone except its owner and of course "root".

From other side, I need to give system management rights to some "users", but they do not have to get access to /home/"user" directory.

I do not know how to do it.
I tried "sudo", but sudo changes user id to root, and that user can read and modify my files. I did "whoami" on "sudo xterm" and got "root".

I need advise.
Thanks.
 
Old 12-16-2010, 01:43 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
You can configure /etc/sudoers to run an application as a different user but root is the default because some utilities require its privileges.


Quote:
Originally Posted by nimnull22 View Post
I need to give system management rights to some "users"
What specific "system management rights" do these users need and how did you configure that? Root has access to things and that is a default anyone has to accept. If you can't trust a user to not deliberately sniff around /home/user then ask yourself how much you would trust the user with system management? Also if there are specific privacy concerns you may want to deal with that preventively and encrypt that users files or the file system, only to be mounted when the user is using the account? If none of this works for you please be verbose in your reply, add examples of users and commands and the nature of contents of /home/user.
 
Old 12-16-2010, 02:16 PM   #3
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Original Poster
Rep: Reputation: 92
Thank you for the answer - I will try to explain.

Question is not about the trust. I just want to setup an environment where several network administrators can share one FreeBSD/Linux, they need to get the root privileges, but also they need to have their home folders closed against each other.

And I probably found one very good solution: sudoers configuration file can describe what exactly user, which is getting root, can do. All I need is to analyze what they will need or just to wait for their offers.

Thanks again.

Last edited by nimnull22; 12-16-2010 at 02:18 PM.
 
Old 12-16-2010, 03:28 PM   #4
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 572

Rep: Reputation: 120Reputation: 120
Create a new group and change /home/user to have read/write access at group level, with your new group. Then add your admin staff to that group.
 
Old 12-17-2010, 03:54 AM   #5
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Quote:
Originally Posted by nimnull22 View Post
And I probably found one very good solution: sudoers configuration file can describe what exactly user, which is getting root, can do. All I need is to analyze what they will need or just to wait for their offers.
This is the way to go IMO. Otherwise (in case they become simply root), they could change the permissions of the home directories of other root users anyway or just su to any of the other root users.
 
Old 12-17-2010, 09:40 AM   #6
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Original Poster
Rep: Reputation: 92
You know, I start to suspect that in original form, *unix is not "multi root (through sudo)" OS, neither Linux nor FreeBSD. Because if user gets root from sudo + xtem and it can do everything, read, write and delete. It is not good at all. Also if one is root, mounts another disk, one also can read there everything unencrypted. I started do not like it, there is no any sign of privacy.

I want to research if selinux can help me to get what I want on Fedora. I will write here if I find anything interesting.

Thanks.

Last edited by nimnull22; 12-17-2010 at 10:09 AM.
 
Old 12-17-2010, 10:23 AM   #7
Dani1973
Member
 
Registered: Dec 2010
Distribution: Debian testing
Posts: 148

Rep: Reputation: 16
This is something typical to nearly any OS : root or administrator can get access to everything that is not encrypted.
Even on a windows system, anyone who is in the administrator group can take ownership and change permissions to get access.
 
Old 12-17-2010, 02:06 PM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
SELinux could but then you would be using a strict MLS-like policy.
 
  


Reply



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
Setting Read permissions of a directory for root user only BlueSkull Linux - Newbie 4 03-23-2010 11:31 AM
Give the root Permission to other user for manage File/Directory shipon_97 Linux - Newbie 2 01-28-2007 11:46 AM
file permissions and other info ok when root, but not ok with other user benobi Linux - Newbie 3 10-17-2005 12:28 PM
backup directory with root only permissions? hobylinux Linux - Newbie 3 08-22-2003 12:25 AM
root vs. user file permissions learning2fly Slackware 4 07-17-2003 12:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:28 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
Open Source Consulting | Domain Registration