2
1
Greetings,
I have a CIFS share mounted on my Linux machine (Fedora 11). This share contains a Subversion working copy that I work with locally on the remote machine. The remote machine is a Linux box running Samba.
I now want to work with the repository on my machine, so I don't have to login to the remote machine to do checkins and updates. However, svn
seems to run into permissions problems when trying to perform file operations on the share.
e.g. (on my machine)
$ svn update
svn: Can't open file '.svn/tempfile.tmp': Permission denied
However, when I try to edit the same file on the command line (e.g. with vi
) it works fine, and I seem to have full read/write permissions to that file.
I also tried doing a new checkout on my machine on the share:
$ svn co svn://10.212.52.226/project/trunk project
svn: Can't create directory 'project/.svn': Permission denied
But I can do it manually:
$ mkdir project/.svn
...and it works.
I mount the share like this:
mount.cifs //10.212.52.240/myname /mnt/mdev -o "uid=myname,gid=myname,password=mypass
So I am the owner of all the files on the mounted share.
For the time being, I can continue using subversion on the remote system, which continues to work fine. But I'd like to get this working. I appreciate any ideas you may have.
Thanks
Edit
Thanks to JohnnyLambada for the suggestion to use strace
. Here is the relevant bit of the strace
output for attempting a subversion checkout:
open("test/.svn/entries", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
lstat64("test", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
mkdir("test/.svn", 0777) = -1 EACCES (Permission denied)
write(2, "svn: Can't create directory 'test"..., 59svn: Can't create directory 'test/.svn': Permission denied
It's still confusing, as I can create the directories (with the same modes) on the commandline.
I did notice, however, that using touch
to create a temp file causes an error:
$ touch foo
touch: setting times of `foo': Permission denied
Although it wasn't able to reset the timestamp, it did create the file.
Thanks for the suggestion; I updated the original post with the strace output – friedo – 2009-11-06T18:00:35.963
So what you're saying is you can create test/.svn? Strange. Try running the mkdir test/.svn under strace as well to see if it's makes the exact same system call. – JohnnyLambada – 2009-11-07T00:11:04.467