SVNForum.org Forum Index FAQFAQ SearchSearch MemberlistMemberlist RegisterRegister Log inLog in

Download Subversion 1.6.12: Free Subversion TrainingWindows - Free Subversion TrainingCentOS 5 - Free Subversion TrainingRedhat Enterprise Linux 5 - Free Subversion TrainingUbuntu 9/10.04 - Free Subversion TrainingDebian Lenny (5)

Free Subversion Training: Free Subversion TrainingAll About Subversion Hook Scripts Free Subversion TrainingSubversion Locking Free Subversion TrainingAll About Checkouts
 
SVN error on NTFS partition from Linux

 
Post new topic   Reply to topic    SVNForum.org Forum Index -> Linux, Unix and *nix
View previous topic :: View next topic  
Author Message
pteri498



Joined: 08 Mar 2010
Posts: 3

PostPosted: Mon Mar 08, 2010 2:22 pm    Post subject: SVN error on NTFS partition from Linux Reply with quote

On my Ubuntu system, I tried doing an svn checkout from a directory onto an ntfs partition and get the following error:

Code:

$ svn co svn+ssh://path/to/project project
user@path's password:
svn: Can't set permissions on 'project/.svn/tempfile.2.tmp': Operation not permitted


I realize that there's no permission setting on an ntfs partition, but how do I make subversion not care about this?

For the record:
Code:

$ svn --version
svn, version 1.6.5 (r38866)
   compiled Aug 31 2009, 18:42:02


edit:
ONTO an ntfs partition, for clarity. The destination folder is ntfs.
Back to top
View user's profile Send private message
andyl



Joined: 03 Nov 2005
Posts: 4790

PostPosted: Mon Mar 08, 2010 2:58 pm    Post subject: Reply with quote

You can't. Subversion (or more likely, APR) doesn't know that it's looking at NTFS, only that it's on a Linux system, so it's trying to do all the normal Linux-y things.

Perhaps the software you use to mount NTFS read/write needs to be more accommodating of setting permissions "the *NIX" way - or at all.

But a better solution would be not sharing your working copy between OSes, which is the only reason I can see for someone trying to use NTFS from Linux in this situation.
Back to top
View user's profile Send private message
pteri498



Joined: 08 Mar 2010
Posts: 3

PostPosted: Mon Mar 08, 2010 3:21 pm    Post subject: Reply with quote

Well, thanks for that advice. I checked my /etc/fstab and noticed that the partition was being mounted with a umask=007 (effectively blocking out anyone but owner and group), so I changed that to 000 and subversion no longer complains about permissions because it has every one of them to begin with.
Back to top
View user's profile Send private message
pteri498



Joined: 08 Mar 2010
Posts: 3

PostPosted: Mon Mar 08, 2010 4:29 pm    Post subject: Reply with quote

Better solution:

I noted the ownership of the files, which was root.

In /etc/fstab, I now have the following settings:

Code:

UUID=3277CD9B4136F0DC /media/win7     ntfs    defaults,umask=022,uid=1000 0       0


Note my umask is 022, meaning effective permissions of 755 (rwxr-xr-x), which are pretty decent permissions. My user's uid is 1000, so I set ownership of the partition mount as that. Now my personal permissiions are rwx, so I get full permissions, and I can modify other permissions as I wish.

I think this is a cleaner solution and allows me more freedom in setting permissions for others.
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Post new topic   Reply to topic    SVNForum.org Forum Index -> Linux, Unix and *nix All times are GMT - 4 Hours
Page 1 of 1
Display posts from previous:   
Google
 
Web SVNForum.org