LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 02-09-2010, 05:56 PM   #1
LQ Newbie
Registered: Feb 2009
Posts: 2

Rep: Reputation: 0
Question Default group for Multiple Developers

OK I have multiple developers on a system and I have setup a area on the web server where they all should have access to and all that fun stuff. Now I do not want to setup these developers default group to be this single group cause they could be members of multiple groups...


/var/www/cust1 - Group Cust1
/var/www/cust2 - Group Cust2

Then say for the developers:

dev1 - member of Cust1 & Cust2 - Default group is dev1
dev2 - member of Cust2 - Default group is dev2
dev3 - member of Cust1 - Default group is dev3

So when they go into say /var/www/cust1 only dev1 & dev3 should have access to modify files and when they create/edit files the owner should be the user and the group I want it to be Cust1. Then when going to say the Cust2 area new files and stuff have Cust2 group access with RWX.

Is this possible for users to just use their normal accounts, or will I need to look are setting up "project" accounts where they can su into say dev1cust1 account which will have the default group of Cust1?

Let me know how you all handle this and what I might be able to do so that the permissions stick.

Thank you all for any help.

Billy S.
Old 02-09-2010, 06:56 PM   #2
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.7, Centos 5.10
Posts: 16,917

Rep: Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214
For dir cust1, create an owner & group cust1 and

chown cust1:cust1grp cust1
chmod g+s cust1

ditto for dir cust2

chown cust2:cust2grp cust2
chmod g+s cust2 : Directory Set Group ID.

Give dev1 & dev2 grp cust1 as an additional/secondary group; similarly for dev3; add cust2 as secondary grp.
See usermod
1 members found this post helpful.
Old 02-09-2010, 07:04 PM   #3
LQ Newbie
Registered: Feb 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Perfect... Thank you... if was the +s part I was missing. Thank you very much


groups, multiuser, permissions, users

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
Default Group For New Users carlosinfl Red Hat 1 10-28-2009 11:03 AM
Default user group mrtedweb Linux - Newbie 3 08-23-2009 01:37 PM
LXer: Microsoft! needs! Yahoo! developers! developers! developers! LXer Syndicated Linux News 0 02-02-2008 12:40 AM
Using Kdevelop with multiple developers md_lasalle Programming 2 12-03-2007 10:54 PM
group passwords + default chosmer Linux - Security 1 07-01-2002 03:05 PM

All times are GMT -5. The time now is 09:58 AM.

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