LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-19-2009, 04:41 PM   #1
ICOMProductions
LQ Newbie
 
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
User accounts and accountability


We have a web server and are trying to meet a clients requirementes around accountability.
Basically, everything in the system should be accomplished using user accounts that are individually identifiable. So basically, no root user, since that's anonymous.

So how should we set up these user accounts?
Being administrators, we want them to have easy access to files not owned by them, such as ones uploaded using FTP accounts or via apache.

We want to be as secure as possible though.

My current thought is to add them to the root group so they have full read access throughout the system, and add them to sudo, but I worry that gives them too much control... Thoughts?
 
Old 08-19-2009, 06:12 PM   #2
MBybee
Member
 
Registered: Jan 2009
Location: wherever I can make a living
Distribution: OpenBSD / Debian / Ubuntu / Win7 / OpenVMS
Posts: 440

Rep: Reputation: 57
I've seen stuff like this done with sudosh - http://en.wikipedia.org/wiki/Sudosh
Is that something like what you're looking for?
 
Old 08-19-2009, 06:44 PM   #3
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
My thought is that rather than extending permissions, you are actually wanting to force all users to give group read access to files.

This might require a mix of techniques: making use of umask defaults, perhaps using the sgid bit on directories, and permission defaults on applications such as apache.

The problem is that if users have shell accounts, it is hard to prevent people placing additional restrictions on files without breaking things.

And there are some circumstances where files should be hidden (eg private encryption keys).

An alternative option would be to have a daemon or cron job that periodically vets the system for hidden directories/files.

You could also look into SELinux, which implements a more fine-grained access control than traditional linux.
 
Old 08-19-2009, 08:16 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
rootsh http://sourceforge.net/projects/rootsh/ is popular for tracking purposes.
I believe you can use it for the login shell, not just sudo.

Give each user a personal group (see Redhat default useradd mechanism) and create an upload dir owned by a separate user.
Add Apache & FTP to the upload group, also all users. Use the SGID bit to control default ownerships.
Do not add users to root group or give them sudo unless you need them to do admin work.
You should also look at SELinux (try Centos/RHEL).
You probably won't need ACLs unless you have some users with very individual requirements. (Hmm, maybe on the upload dir).

Set perms on user's home dir drwx------ .
 
  


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
Difference betwwen : Locked User Account & Disabled User Accounts in Linux ? avklinux Linux - Security 1 02-04-2009 02:30 PM
LXer: Google's Knol: More Rules, More Accountability, More Money LXer Syndicated Linux News 0 07-25-2008 04:11 AM
LXer: A Call To Accountability LXer Syndicated Linux News 0 10-29-2007 11:30 PM
LXer: Linux 101: Manage user accounts in a multi-user Linux environment ... LXer Syndicated Linux News 0 06-27-2006 07:03 AM
User Accounts Cool_Hand_Luke Linux - Newbie 6 08-24-2005 08:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:10 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