SVN error on NTFS partition from Linux
|
| View previous topic :: View next topic |
| Author |
Message |
pteri498
Joined: 08 Mar 2010 Posts: 3
|
Posted: Mon Mar 08, 2010 2:22 pm Post subject: SVN error on NTFS partition from Linux |
|
|
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 |
|
andyl
Joined: 03 Nov 2005 Posts: 4790
|
Posted: Mon Mar 08, 2010 2:58 pm Post subject: |
|
|
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 |
|
pteri498
Joined: 08 Mar 2010 Posts: 3
|
Posted: Mon Mar 08, 2010 3:21 pm Post subject: |
|
|
| 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 |
|
pteri498
Joined: 08 Mar 2010 Posts: 3
|
Posted: Mon Mar 08, 2010 4:29 pm Post subject: |
|
|
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 previous topic :: View next topic |
|