Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Permission setting in htdocs directory

Status
Not open for further replies.

keak

Programmer
Sep 12, 2005
247
CA
Hi there,
I am trying to figure what the best permission setting approach is in the following case:

In htdocs, I have a couple websites dirs:
dir1 dir2 dir3 dir4 dir5 dir6 dir7

User1 can write to dir1 dir2 dir3 only
User2 can write to dir3 dir4 dir5 only
User3 can write to dir6 dir7 only

In this case, how would I set up the files ownership and permissions for the 7 directories in this folder?





 
create 3 differents groups ;)

drwx------ user1 group1 dir1
drwx------ user1 group1 dir2
drwxrwx--- user1 group1 dir3
drwx------ user2 group2 dir4
drwx------ user2 group2 dir5
drwx------ user3 group3 dir6
drwx------ user3 group3 dir7


Chacal, Inc.[wavey]
 
I would create 7 groups, call them group1 through group7.

Make group1 the group owner of dir1, group2 the owner of dir2, etc.

Make user1 a member of group1, group2 and group3.
Make user2 a member of group3, group4 and group5.
Make user3 a member of group6 and group7.



Want the best answers? Ask the best questions! TANSTAAFL!
 
oops.. sorry: 2 groups

drwx------ user1 group1 dir1
drwx------ user1 group1 dir2
drwxrwx--- user1 group1 dir3
drwx------ user2 group1 dir4
drwx------ user2 group1 dir5
drwx------ user3 group3 dir6
drwx------ user3 group3 dir7

Chacal, Inc.[wavey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top