This is somewhat of a ssh question.

Our master repos are located on a server that is accessed via smb or cifs. These shares have the force-group option enabled so that any modifications to files on that share are done with user and group set to user 'samba' so that files created on these shares will be accessable to all users.

I also have ssh setup and I'd like to be able to push and pull from the master copies via ssh from remote locations.

The problem is that when darcs modifies the files via ssh its going to change the user and groups to match the user doing the changes. This will break samba access to that file.

With CVS this was not a problem since the CVS repo was only modified by CVS and not under samba control. The top level CVSROOT directory has the group sticky bit set. All CVS users are part of the source group.

I think I can set up a post push hook that will chmod the files back to user 'samba'. That will need root privilidges and what happens when the repo in under access from both domains? Does the post hook happen atomic under the push?

I could create a darcsroot dir like the cvsroot and set the sticky bits. But one of the things I really liked about darcs was the ability to put our source files in with the project directory rather than in an external location.

Anyone else dealt with this? Is there some ssh magic I can do to leave the files as the 'samba' user.

--
Richard A. Smith
Bitworks, Inc


_______________________________________________
darcs-users mailing list
[email protected]
http://www.abridgegame.org/mailman/listinfo/darcs-users

Reply via email to