[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: problem with import in SMB (CIFS) share

From: Vandenbroucke Sander <Sander.Vandenbroucke_at_vandewiele.com>
Date: 2005-09-29 10:48:42 CEST

There might be something else wrong.
 
I've mounted the cifs share with the same gid and uid as the user doing the import and the mode set to 777. The problem remains the same...
svn Can't read file '/mnt/smbshare/repos/db/transactions/0-1.txn/props': Permission denied

svn is able to create the 0-1.txn directory but there is no props-file in it.
 
I tried umask 0000 for svn and svnadmin (wrapper script) but still it doesn't work.
 
Sander.

-----Original Message-----
From: Oliver Pajonk [mailto:oliver.pajonk@gmail.com]
Sent: 28 September 2005 17:25
To: Vandenbroucke Sander
Cc: users@subversion.tigris.org
Subject: Re: problem with import in SMB (CIFS) share

I have just tested this using my co-Linux running on a W2K3 server. The share is mounted with file_mode=0666 and dir_mode=0777, so anyone can access it.

If I test it as user "root" it works without problems, but if I test it as a "normal" user, I get the same error as you do.

Some investigation revealed that you have to set the umask correctly. In my case setting it to 0000 (man umask should help here) solved the problem.

Little explanation: This happens to repositories created on CIFS shares as the files created on them always belong to the user mounting it, no matter who issues a command (in my case all files belong to "root", even if created by another user). So if a user creates a file on the share it gets per default rw-r--r-- as rights, and as it belongs to root, nobody except root is allowed to change it. This essentially happens for SVN, too. Setting the umask appropriately changes this behaviour and everything should be fine.

HTH

Oliver Pajonk

2005/9/28, Vandenbroucke Sander < Sander..Vandenbroucke@vandewiele.com <mailto:Sander.Vandenbroucke@vandewiele.com> >:

Hi,

I'm setting up my first subversion repository.

I want to put the repository on a SMB share hosted by some Win 2003 server:
svnadmin create -fs-type fsfs /mnt/smbshare/repos

When I try to import some project I get the following:
svn import . file:///mnt/smbshare/repos --message "Initial import"
svn Can't read file '/mnt/smbshare/repos/db/transactions/0-1.txn/props': Permission denied

The import works fine if I create the repository on a local (ext3) filesystem.

I'm usning subversion 1.2.1 on FC2.

Anyone an idea what's happening?
Sander.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org <mailto:users-help@subversion.tigris.org>

______________________________________________________________________
This email has been scanned by the Email Security System..
______________________________________________________________________
Received on Thu Sep 29 11:14:08 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.