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

Permission flag t set on newly created repositories

From: Henrik Ripa <gieron_at_yahoo.com>
Date: 2004-07-27 01:54:07 CEST


I'm new to subversion and I'm trying to set up a repository server under linux
(Debian) to be accessable from windows. It's going fairly well. I have one
question though.

I tried out the new fsfs fs-type just now and got the following error message
when trying to commit the first file:

 D:\SubVersion\fsfs>svn ci -m "first commit to an fsfs repository"
 Adding nytt.txt
 Transmitting file data .svn: Commit failed (details follow):
 svn: MERGE request failed on '/svn/test_fsfs'
 Can't move '/public/subversion/test_fsfs/db/current.tmp'
 to '/public/subversion/test_fsfs/db/current': Operation not permitted

Which is clearly a permission problem. To cut a long story short I tracked it
down to the fact that the repository had the following permissions set:

 0:gieron@subnav...rsion/test_fsfs: ls -ld . db db/current*
 drwxrwsr-t 7 gieron svn 4096 Jul 27 01:41 .
 drwxrwsr-t 5 gieron svn 4096 Jul 27 01:16 db
 -rw-rw-r-- 1 gieron svn 6 Jul 27 01:13 db/current
 -rw-rw-r-- 1 www-data svn 6 Jul 27 01:16 db/current.tmp

The problem is that t permission flag at the end which tells the system (if I
understand it correctly) that a user cannot remove another users files despite
them having write access to the directory.

'svnadmin create' always sets this flag on all directories in a newly created
repository. Why is that? I can't think of any reason for doing this.

The commit worked after using this command:

 0:gieron@subnav...rsion/test_fsfs: sudo chmod -R o-t *

Henrik Ripa [Gieron] - Lule/Norrbotten/Sweden

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jul 27 01:54:25 2004

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.