We have a development directory shared by our team. Everytime a user adds a file, the ownership changes to that user. Is there a way to ensure that the owner of files added within a directory always remains the same?
feedback
|
|
If you're accessing the directory via SMB using Samba, you can use the
| |||||
|
feedback
|
|
No, but you can make the directory setgid so that the group owner of the directory has group ownership of any files created within it. | |||
|
feedback
|
|
The standard solution for this problem -- sharing a version control repository among multiple users -- is to have everyone interact with the repository via a server running as a dedicated user rather than via the filesystem. As you've discovered, using the filesystem is problematic. You haven't specified which version control system you're using, but with either Suversion or git you would set up a dedicated user on your system, and then have your developers access the repository over ssh. With Subversion you would use The default behavior for git is to use ssh to access "remote" repositories. I put "remote" in quotes because in your case you'll be running the "server" on the local system. | |||
|
feedback
|