I hope this is a Superuser question and not for Server Fault. At work, we use a variety of Linux/Unix boxes. I mount these on my OS X Lion laptop via SMB. I've noticed when I work with files on the mount, the permissions will sometimes get changed so that only I can modify the files. This is obviously obnoxious for my co-workers but easy to fix.
The thing is not easy to fix is when I interact with SVN working copies that exist on the mounted boxes. They get corrupted beyond all repair (the '.svn' folder that contains all the meta data gets its permissions and flags ALLLL messed up). Every time I do an update or commit this happens.
I have heard there are some settings I could apply in SMB.conf to fix the problem but I don't know exactly what they should be. Everything seems to be geared for configuring OS X to be a share, but I guess what I am looking for is the SMB client config.
I don't have an /etc/smb.conf, I do have an /etc/smb.conf.old that came with the install but I am guessing it is not being applied. Will simply creating my own '/etc/smb.conf' force it to be applied even though I am the client and not the server?
How do I configure the SMB client to force permissions etc. after I work with files on the mount (and especially for creating directories as SVN does)? Can I configure it on a mount-to-mount basis or is there a global conf I can do that will apply to all of my SMB Mounts?
I work with these same boxes from Windows XP mounted as a network drive and do the same stuff (SVN etc) with no issues whatsoever.
The boxes I work with are running Linux - Red Hat Linux Advanced Server release 2.1AS (Pensacola)