Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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.

1 Answer 1

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.