Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

how can i get a file or directory to be owned by two people? (have read/write permissions) i understand this involves groups, so i added user www-data to group user, then did

chown www-data:user dir

but i am not getting the effect i want.

more details: all my web projects are rooted in drop box. i work in a windows environment, change files, and 10s later they're updated on the linux machine via dropbox. for directories/files that need write access, i do:

chown www-data:www-data dir

BUT then dropbox loses the ability to update that file, i think it's because user is no longer an owner of that file.

share|improve this question

closed as off-topic by Iain, Ward, Falcon Momot, dawud, mdpc Sep 7 '13 at 18:07

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must be relevant to professional system administration. Server Fault is a site dedicated to professionals; novice questions are off-topic. Please see the Help Center for more information on topicality. The best advice we can give you is to hire a professional to help you out." – Iain, Ward, Falcon Momot, mdpc
If this question can be reworded to fit the rules in the help center, please edit the question.

You probably want to do:

chown <user-account>.<shared-group> <dir>

And add both users to the 'shared-group' group.

(You just had the order of the group/user accounts reversed)

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.