SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Weird to analyze rdiff-backup problem.
Author Message
Post Weird to analyze rdiff-backup problem. 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It is very difficult to see what the problem REALLY is, it looks like
a permissions problem but it ain't.
Following you will see 3 rdiff-backup runs and my comments at the end
of it:

1st
-
------------------------------------------------------------------------------------
beekini root # rdiff-backup -v5 /usr/home/share/BOOKS/
steve < at > hadron.ion.lu::/home/bup/disk1/dakini/home-share-books-rdiff
Executing ssh -C steve < at > hadron.ion.lu rdiff-backup --server
Password:
Unable to import module xattr. EAs not supported on filesystem at
/usr/home/share/BOOKS
Unable to import module posix1e from pylibacl package.
ACLs not supported on filesystem at /usr/home/share/BOOKS
- -----------------------------------------------------------------
Detected abilities for source (read only) file system:
Access control lists Off
Extended attributes Off
Mac OS X style resource forks Off
Mac OS X Finder information Off
- -----------------------------------------------------------------
Warning: ownership cannot be changed on filesystem at
/home/bup/disk1/dakini/home-share-books-rdiff/rdiff-backup-data
- -----------------------------------------------------------------
Unable to import module xattr. EAs not supported on filesystem at
/home/bup/disk1/dakini/home-share-books-rdiff/rdiff-backup-data/rdiff-backup.tmp.0
Unable to import module posix1e from pylibacl package.
ACLs not supported on filesystem at
/home/bup/disk1/dakini/home-share-books-rdiff/rdiff-backup-data/rdiff-backup.tmp.0
Detected abilities for destination (read/write) file system:
Characters needing quoting ''
Ownership changing Off
Hard linking On
fsync() directories On
Directory inc permissions Off
Access control lists Off
Extended attributes Off
Mac OS X style resource forks Off
Mac OS X Finder information Off
- -----------------------------------------------------------------
Starting mirror /usr/home/share/BOOKS to
/home/bup/disk1/dakini/home-share-books-rdiff
Processing changed file .
Processing changed file BOOKS
Processing changed file BOOKS/50+
Processing changed file BOOKS/50+/50+ market analysis.doc
Processing changed file BOOKS/50+/50+ supermarket.doc
Processing changed file BOOKS/50+/The Luxury Phenomenon -Europe and
Japan-.doc
Processing changed file BOOKS/50+/UK population and other statistics.doc
Processing changed file BOOKS/50+/~$+ market analysis.doc
Processing changed file BOOKS/50+/~$+ supermarket.doc
Processing changed file BOOKS/AVIS
Processing changed file BOOKS/AVIS/.keep_me
Processing changed file BOOKS/AVIS/IMAGES
Processing changed file BOOKS/AVIS/IMAGES/AVIS OPEN 1.jpg
Processing changed file BOOKS/AVIS/IMAGES/AVIS OPEN 2.jpg
Traceback (most recent call last):
Processing changed file BOOKS/AVIS/IMAGES/AVIS OPEN 3.jpg
Processing changed file BOOKS/AVIS/IMAGES/AVIS OPEN 4.jpg
Processing changed file BOOKS/AVIS/IMAGES/AVIS OPEN 5.jpg
Processing changed file BOOKS/AVIS/IMAGES/aviscover.jpg
Processing changed file BOOKS/AVIS/keep_me
Processing changed file BOOKS/BOLLYWOOD
Sending back exception [Errno 1] Operation not permitted:
'/home/bup/disk1/dakini/home-share-books-rdiff/BOOKS/AVIS' of type
exceptions.OSError:
File
"/usr/local/lib/python2.4/site-packages/rdiff_backup/connection.py",
line 334, in answer_request
result = apply(eval(request.function_string), argument_list)
File
"/usr/local/lib/python2.4/site-packages/rdiff_backup/backup.py", line
215, in patch
ITR(diff.index, diff)
File
"/usr/local/lib/python2.4/site-packages/rdiff_backup/rorpiter.py",
line 275, in __call__
if self.finish_branches(index) is None:
File
"/usr/local/lib/python2.4/site-packages/rdiff_backup/rorpiter.py",
line 227, in finish_branches
to_be_finished.end_process()
File
"/usr/local/lib/python2.4/site-packages/rdiff_backup/backup.py", line
566, in end_process
rpath.copy_attribs(self.dir_update, self.base_rp)
File "/usr/local/lib/python2.4/site-packages/rdiff_backup/rpath.py",
line 162, in copy_attribs
rpout.chmod(rpin.getperms())
File "/usr/local/lib/python2.4/site-packages/rdiff_backup/rpath.py",
line 752, in chmod
self.conn.os.chmod(self.path, permissions)

File "/usr/local/bin/rdiff-backup", line 23, in ?
rdiff_backup.Main.Main(sys.argv[1:])
File "/usr/local/lib/python2.4/site-packages/rdiff_backup/Main.py",
line 259, in Main
take_action(rps)
File "/usr/local/lib/python2.4/site-packages/rdiff_backup/Main.py",
line 229, in take_action
elif action == "backup": Backup(rps[0], rps[1])
File "/usr/local/lib/python2.4/site-packages/rdiff_backup/Main.py",
line 281, in Backup
backup.Mirror(rpin, rpout)
File
"/usr/local/lib/python2.4/site-packages/rdiff_backup/backup.py", line
38, in Mirror
DestS.patch(dest_rpath, source_diffiter)
File
"/usr/local/lib/python2.4/site-packages/rdiff_backup/connection.py",
line 445, in __call__
return apply(self.connection.reval, (self.name,) + args)
File
"/usr/local/lib/python2.4/site-packages/rdiff_backup/connection.py",
line 367, in reval
if isinstance(result, Exception): raise result
OSError: [Errno 1] Operation not permitted:
'/home/bup/disk1/dakini/home-share-books-rdiff/BOOKS/AVIS'
beekini root # Traceback (most recent call last):
File "/usr/local/bin/rdiff-backup", line 23, in ?
rdiff_backup.Main.Main(sys.argv[1:])
File "/usr/local/lib/python2.4/site-packages/rdiff_backup/Main.py",
line 259, in Main
take_action(rps)
File "/usr/local/lib/python2.4/site-packages/rdiff_backup/Main.py",
line 227, in take_action
connection.PipeConnection(sys.stdin, sys.stdout).Server()
File
"/usr/local/lib/python2.4/site-packages/rdiff_backup/connection.py",
line 352, in Server
self.get_response(-1)
File
"/usr/local/lib/python2.4/site-packages/rdiff_backup/connection.py",
line 314, in get_response
try: req_num, object = self._get()
File
"/usr/local/lib/python2.4/site-packages/rdiff_backup/connection.py",
line 230, in _get
raise ConnectionReadError("Truncated header string (problem "
rdiff_backup.connection.ConnectionReadError: Truncated header string
(problem probably originated remotely)
Exception exceptions.TypeError: "'NoneType' object is not callable" in
<bound method GzipFile.__del__ of <gzip open file
'/home/bup/disk1/dakini/home-share-books-rdiff/rdiff-backup-data/file_statistics.2005-04-15T18:10:39+02:00.data.gz',
mode 'wb' at 0x81ded10 0x832814c>> ignored
Exception exceptions.TypeError: "'NoneType' object is not callable" in
<bound method GzipFile.__del__ of <gzip open file
'/home/bup/disk1/dakini/home-share-books-rdiff/rdiff-backup-data/error_log.2005-04-15T17:10:39+01:00.data.gz',
mode 'wb' at 0x81deba8 0x832628c>> ignored
Exception exceptions.TypeError: "'NoneType' object is not callable" in
<bound method GzipFile.__del__ of <gzip open file
'/home/bup/disk1/dakini/home-share-books-rdiff/rdiff-backup-data/mirror_metadata.2005-04-15T18:10:39+02:00.snapshot.gz',
mode 'wb' at 0x81ded58 0x832802c>> ignored
beekini root #


2nd
-
------------------------------------------------------------------------------------

beekini root # rdiff-backup -v5 /usr/home/share/BOOKS/BOOKS/AVIS/
steve < at > hadron.ion.lu::/home/bup/disk1/dakini/home-share-books-rdiff2
Executing ssh -C steve < at > hadron.ion.lu rdiff-backup --server
Password:
Unable to import module xattr. EAs not supported on filesystem at
/usr/home/share/BOOKS/BOOKS/AVIS
Unable to import module posix1e from pylibacl package.
ACLs not supported on filesystem at /usr/home/share/BOOKS/BOOKS/AVIS
- -----------------------------------------------------------------
Detected abilities for source (read only) file system:
Access control lists Off
Extended attributes Off
Mac OS X style resource forks Off
Mac OS X Finder information Off
- -----------------------------------------------------------------
Warning: ownership cannot be changed on filesystem at
/home/bup/disk1/dakini/home-share-books-rdiff2/rdiff-backup-data
- -----------------------------------------------------------------
Unable to import module xattr. EAs not supported on filesystem at
/home/bup/disk1/dakini/home-share-books-rdiff2/rdiff-backup-data/rdiff-backup.tmp.0
Unable to import module posix1e from pylibacl package.
ACLs not supported on filesystem at
/home/bup/disk1/dakini/home-share-books-rdiff2/rdiff-backup-data/rdiff-backup.tmp.0
Detected abilities for destination (read/write) file system:
Characters needing quoting ''
Ownership changing Off
Hard linking On
fsync() directories On
Directory inc permissions Off
Access control lists Off
Extended attributes Off
Mac OS X style resource forks Off
Mac OS X Finder information Off
- -----------------------------------------------------------------
Starting mirror /usr/home/share/BOOKS/BOOKS/AVIS to
/home/bup/disk1/dakini/home-share-books-rdiff2
Processing changed file .
Processing changed file IMAGES
Traceback (most recent call last):
Processing changed file IMAGES/AVIS OPEN 1.jpg
Processing changed file IMAGES/AVIS OPEN 2.jpg
Processing changed file IMAGES/AVIS OPEN 3.jpg
Processing changed file IMAGES/AVIS OPEN 4.jpg
Processing changed file IMAGES/AVIS OPEN 5.jpg
Processing changed file IMAGES/aviscover.jpg
Sending back exception [Errno 1] Operation not permitted:
'/home/bup/disk1/dakini/home-share-books-rdiff2' of type
exceptions.OSError:
File
"/usr/local/lib/python2.4/site-packages/rdiff_backup/connection.py",
line 334, in answer_request
result = apply(eval(request.function_string), argument_list)
File
"/usr/local/lib/python2.4/site-packages/rdiff_backup/backup.py", line
216, in patch
ITR.Finish()
File
"/usr/local/lib/python2.4/site-packages/rdiff_backup/rorpiter.py",
line 245, in Finish
to_be_finished.end_process()
File
"/usr/local/lib/python2.4/site-packages/rdiff_backup/backup.py", line
566, in end_process
rpath.copy_attribs(self.dir_update, self.base_rp)
File "/usr/local/lib/python2.4/site-packages/rdiff_backup/rpath.py",
line 162, in copy_attribs
rpout.chmod(rpin.getperms())
File "/usr/local/lib/python2.4/site-packages/rdiff_backup/rpath.py",
line 752, in chmod
self.conn.os.chmod(self.path, permissions)

File "/usr/local/bin/rdiff-backup", line 23, in ?
rdiff_backup.Main.Main(sys.argv[1:])
File "/usr/local/lib/python2.4/site-packages/rdiff_backup/Main.py",
line 259, in Main
take_action(rps)
File "/usr/local/lib/python2.4/site-packages/rdiff_backup/Main.py",
line 229, in take_action
elif action == "backup": Backup(rps[0], rps[1])
File "/usr/local/lib/python2.4/site-packages/rdiff_backup/Main.py",
line 281, in Backup
backup.Mirror(rpin, rpout)
File
"/usr/local/lib/python2.4/site-packages/rdiff_backup/backup.py", line
38, in Mirror
DestS.patch(dest_rpath, source_diffiter)
File
"/usr/local/lib/python2.4/site-packages/rdiff_backup/connection.py",
line 445, in __call__
return apply(self.connection.reval, (self.name,) + args)
File
"/usr/local/lib/python2.4/site-packages/rdiff_backup/connection.py",
line 367, in reval
if isinstance(result, Exception): raise result
OSError: [Errno 1] Operation not permitted:
'/home/bup/disk1/dakini/home-share-books-rdiff2'
beekini root # Traceback (most recent call last):
File "/usr/local/bin/rdiff-backup", line 23, in ?
rdiff_backup.Main.Main(sys.argv[1:])
File "/usr/local/lib/python2.4/site-packages/rdiff_backup/Main.py",
line 259, in Main
take_action(rps)
File "/usr/local/lib/python2.4/site-packages/rdiff_backup/Main.py",
line 227, in take_action
connection.PipeConnection(sys.stdin, sys.stdout).Server()
File
"/usr/local/lib/python2.4/site-packages/rdiff_backup/connection.py",
line 352, in Server
self.get_response(-1)
File
"/usr/local/lib/python2.4/site-packages/rdiff_backup/connection.py",
line 314, in get_response
try: req_num, object = self._get()
File
"/usr/local/lib/python2.4/site-packages/rdiff_backup/connection.py",
line 230, in _get
raise ConnectionReadError("Truncated header string (problem "
rdiff_backup.connection.ConnectionReadError: Truncated header string
(problem probably originated remotely)
Exception exceptions.TypeError: "'NoneType' object is not callable" in
<bound method GzipFile.__del__ of <gzip open file
'/home/bup/disk1/dakini/home-share-books-rdiff2/rdiff-backup-data/file_statistics.2005-04-15T18:14:52+02:00.data.gz',
mode 'wb' at 0x81ded10 0x832814c>> ignored
Exception exceptions.TypeError: "'NoneType' object is not callable" in
<bound method GzipFile.__del__ of <gzip open file
'/home/bup/disk1/dakini/home-share-books-rdiff2/rdiff-backup-data/error_log.2005-04-15T17:14:52+01:00.data.gz',
mode 'wb' at 0x81deba8 0x832628c>> ignored
Exception exceptions.TypeError: "'NoneType' object is not callable" in
<bound method GzipFile.__del__ of <gzip open file
'/home/bup/disk1/dakini/home-share-books-rdiff2/rdiff-backup-data/mirror_metadata.2005-04-15T18:14:52+02:00.snapshot.gz',
mode 'wb' at 0x81ded58 0x832802c>> ignored
beekini root #


3rd
-
------------------------------------------------------------------------------------

beekini root # rdiff-backup -v5
/usr/home/share/BOOKS/BOOKS/AVIS/IMAGES/
steve < at > hadron.ion.lu::/home/bup/disk1/dakini/home-share-books-rdiff3
Executing ssh -C steve < at > hadron.ion.lu rdiff-backup --server
Password:
Unable to import module xattr. EAs not supported on filesystem at
/usr/home/share/BOOKS/BOOKS/AVIS/IMAGES
Unable to import module posix1e from pylibacl package.
ACLs not supported on filesystem at
/usr/home/share/BOOKS/BOOKS/AVIS/IMAGES
- -----------------------------------------------------------------
Detected abilities for source (read only) file system:
Access control lists Off
Extended attributes Off
Mac OS X style resource forks Off
Mac OS X Finder information Off
- -----------------------------------------------------------------
Warning: ownership cannot be changed on filesystem at
/home/bup/disk1/dakini/home-share-books-rdiff3/rdiff-backup-data
- -----------------------------------------------------------------
Unable to import module xattr. EAs not supported on filesystem at
/home/bup/disk1/dakini/home-share-books-rdiff3/rdiff-backup-data/rdiff-backup.tmp.0
Unable to import module posix1e from pylibacl package.
ACLs not supported on filesystem at
/home/bup/disk1/dakini/home-share-books-rdiff3/rdiff-backup-data/rdiff-backup.tmp.0
Detected abilities for destination (read/write) file system:
Characters needing quoting ''
Ownership changing Off
Hard linking On
fsync() directories On
Directory inc permissions Off
Access control lists Off
Extended attributes Off
Mac OS X style resource forks Off
Mac OS X Finder information Off
- -----------------------------------------------------------------
Starting mirror /usr/home/share/BOOKS/BOOKS/AVIS/IMAGES to
/home/bup/disk1/dakini/home-share-books-rdiff3
Processing changed file .
Processing changed file AVIS OPEN 1.jpg
Processing changed file AVIS OPEN 2.jpg
Processing changed file AVIS OPEN 3.jpg
Processing changed file AVIS OPEN 4.jpg
Processing changed file AVIS OPEN 5.jpg
Processing changed file aviscover.jpg
beekini root #

NOW, the first 2 runs fail, the third one succeeds. I am running
FreeBSD 4.10 but I have very similar problems on other client machines
which run FreeBSD 5.

beekini root # uname -a
FreeBSD beekini.dakinibooks.com 4.10-RELEASE FreeBSD 4.10-RELEASE #6:
Fri Jun 18 23:15:52 BST 2004
root < at > beekini.dakinibooks.com:/usr/obj/usr/src/sys/BEEKINI i386

Following structure:

beekini BOOKS # pwd
/usr/home/share/BOOKS/BOOKS
beekini BOOKS # ls -lahR AVIS/
total 6
drwxrwsr-x 3 lucky public 512B Apr 15 17:14 .
drwxrwsr-x 16 lucky public 512B Apr 15 16:14 ..
drwxrwxr-x 2 lucky public 512B Oct 14 2004 IMAGES

AVIS/IMAGES:
total 86
drwxrwxr-x 2 lucky public 512B Oct 14 2004 .
drwxrwsr-x 3 lucky public 512B Apr 15 17:14 ..
- -rwxrw-r-- 1 lucky public 12K May 9 2004 AVIS OPEN 1.jpg
- -rwxrw-r-- 1 lucky public 14K May 9 2004 AVIS OPEN 2.jpg
- -rwxrw-r-- 1 lucky public 12K May 9 2004 AVIS OPEN 3.jpg
- -rwxrw-r-- 1 lucky public 12K May 9 2004 AVIS OPEN 4.jpg
- -rwxrw-r-- 1 lucky public 12K May 9 2004 AVIS OPEN 5.jpg
- -rwxrw-r-- 1 lucky public 8K May 9 2004 aviscover.jpg
beekini BOOKS #


NOTICE that AVIS is EMPTY! Could that be the problem? CASES? I tried
putting empty files into AVIS but the same problems were occuring.

I googled quite a lot and didn't find anything relating to this Errno 1.

If it is a FreeBSD problem I will try and fix it. Hmmm, I might just
tar that up and try it on one of our Gentoo Installs.

Thanks,

Steve C

- --
ION Network Solutions
Steve Clement
Unix System Administrator
209, rue des Romains
L-8041 Bertrange
Tel: +352 261 276-2
Fax: +352 261 276-9
mailto:steve < at > ion.lu
http://www.ion.lu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFCX+qoMH8DIBsiCrgRArVpAJ43nab3rVgoqVDLJkRIfQnjDiuDWgCgsMUr
r4CHeLY39YaGiJi+grh5dZY=
=Stc1
-----END PGP SIGNATURE-----

Post Weird to analyze rdiff-backup problem. 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Steve Clement wrote:



beekini BOOKS # pwd /usr/home/share/BOOKS/BOOKS beekini BOOKS # ls
-lahR AVIS/ total 6 drwxrwsr-x 3 lucky public 512B Apr 15 17:14
. drwxrwsr-x 16 lucky public 512B Apr 15 16:14 .. drwxrwxr-x 2
lucky public 512B Oct 14 2004 IMAGES

AVIS/IMAGES: total 86 drwxrwxr-x 2 lucky public 512B Oct 14
2004 . drwxrwsr-x 3 lucky public 512B Apr 15 17:14 ..
-rwxrw-r-- 1 lucky public 12K May 9 2004 AVIS OPEN 1.jpg
-rwxrw-r-- 1 lucky public 14K May 9 2004 AVIS OPEN 2.jpg
-rwxrw-r-- 1 lucky public 12K May 9 2004 AVIS OPEN 3.jpg
-rwxrw-r-- 1 lucky public 12K May 9 2004 AVIS OPEN 4.jpg
-rwxrw-r-- 1 lucky public 12K May 9 2004 AVIS OPEN 5.jpg
-rwxrw-r-- 1 lucky public 8K May 9 2004 aviscover.jpg
beekini BOOKS #


Replying to my own post...

it is because of the sticky-bit, something isn't right there.

I will fiddle with the switches to get it solved, it should work
though cause I am copying FreeBSD to FreeBSD

chmod g-ws DIRECTORY solves the problem

weird that it works in seprate runs, maybe the permissions are not
preserved?

here is the -v9 output of the last few lines:

Wed Apr 20 12:19:19 2005 Copying attributes from ('BOOKS', 'AVIS') to
/home/bup/disk1/dakini/home-share-books-rdifftes9/BOOKS/AVIS
Wed Apr 20 12:19:19 2005 Sending back exception [Errno 1] Operation
not permitted:
'/home/bup/disk1/dakini/home-share-books-rdifftes9/BOOKS/AVIS' of type
exceptions.OSError:
File
"/usr/local/lib/python2.4/site-packages/rdiff_backup/connection.py",
line 329, in answer_request
result = apply(eval(request.function_string), argument_list)
File
"/usr/local/lib/python2.4/site-packages/rdiff_backup/backup.py", line
212, in patch
ITR(diff.index, diff)
File
"/usr/local/lib/python2.4/site-packages/rdiff_backup/rorpiter.py",
line 275, in __call__
if self.finish_branches(index) is None:
File
"/usr/local/lib/python2.4/site-packages/rdiff_backup/rorpiter.py",
line 227, in finish_branches
to_be_finished.end_process()
File
"/usr/local/lib/python2.4/site-packages/rdiff_backup/backup.py", line
551, in end_process
rpath.copy_attribs(self.dir_update, self.base_rp)
File "/usr/local/lib/python2.4/site-packages/rdiff_backup/rpath.py",
line 157, in copy_attribs
rpout.chmod(rpin.getperms())
File "/usr/local/lib/python2.4/site-packages/rdiff_backup/rpath.py",
line 629, in chmod
self.conn.os.chmod(self.path, permissions)

Wed Apr 20 12:19:19 2005 Server sending (0): [Errno 1] Operation not
permitted: '/home/bup/disk1/dakini/home-share-books-rdifftes9/BOOKS/AVIS'
Traceback (most recent call last):
File "/usr/local/bin/rdiff-backup", line 23, in ?
rdiff_backup.Main.Main(sys.argv[1:])
File "/usr/local/lib/python2.4/site-packages/rdiff_backup/Main.py",
line 254, in Main
take_action(rps)
File "/usr/local/lib/python2.4/site-packages/rdiff_backup/Main.py",
line 224, in take_action
connection.PipeConnection(sys.stdin, sys.stdout).Server()
File
"/usr/local/lib/python2.4/site-packages/rdiff_backup/connection.py",
line 347, in Server
self.get_response(-1)
File
"/usr/local/lib/python2.4/site-packages/rdiff_backup/connection.py",
line 309, in get_response
try: req_num, object = self._get()
File
"/usr/local/lib/python2.4/site-packages/rdiff_backup/connection.py",
line 225, in _get
raise ConnectionReadError("Truncated header string (problem "
rdiff_backup.connection.ConnectionReadError: Truncated header string
(problem probably originated remotely)
Exception exceptions.TypeError: "'NoneType' object is not callable" in
<bound method GzipFile.__del__ of <gzip open file
'/home/bup/disk1/dakini/home-share-books-rdifftes9/rdiff-backup-data/file_statistics.2005-04-20T12:19:15+02:00.data.gz',
mode 'wb' at 0x825c020 0x8311c8c>> ignored
Exception exceptions.TypeError: "'NoneType' object is not callable" in
<bound method GzipFile.__del__ of <gzip open file
'/home/bup/disk1/dakini/home-share-books-rdifftes9/rdiff-backup-data/error_log.2005-04-20T11:19:15+01:00.data.gz',
mode 'wb' at 0x81f5ec0 0x82eefac>> ignored
Exception exceptions.TypeError: "'NoneType' object is not callable" in
<bound method GzipFile.__del__ of <gzip open file
'/home/bup/disk1/dakini/home-share-books-rdifftes9/rdiff-backup-data/mirror_metadata.2005-04-20T12:19:15+02:00.snapshot.gz',
mode 'wb' at 0x825c068 0x8311ccc>> ignored

Steve C



- --
ION Network Solutions
Steve Clement
Unix System Administrator
209, rue des Romains
L-8041 Bertrange
Tel: +352 261 276-2
Fax: +352 261 276-9
mailto:steve < at > ion.lu
http://www.ion.lu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFCZjqtMH8DIBsiCrgRAu7mAJoCst6L4+odvmI+2/UxmTwZYHgeHwCeJQyL
1QnNx58afbmI5r6d6sSUwqs=
=N36F
-----END PGP SIGNATURE-----

Post Weird to analyze rdiff-backup problem. 
On Wed, 20 Apr 2005, Steve Clement wrote:

it is because of the sticky-bit, something isn't right there.

actually it's not the sticky-bit -- sticky-bit would be a final "t" in the
last column of the perms. the "s" is setgid... i'm not 100% certain of
the setgid directory semantics on freebsd but elsewhere it causes group
inheritance for new files.

here is one guess... rdiff-backup does a chown before a chmod, which is
the necessary ordering to set set[ug]id bits on files (because chown drops
set[ug]id bits for security reasons)... but some operating systems permit
regular users to "give away" files/directories -- you can chown or chgrp
them to other users or groups. in that case you'd get EPERM from the
chmod.

i don't know if freebsd is in that class of OS or not...

your remote side is not root, so it's possibly running into troubles of
this nature.

another possibility is that a non-root can't setgid a directory, which i
would find odd...

can you "find -ls" the contents of the remote directory so we can see what
perms it set up before trying the chmod?

regardless i think rdiff-backup should let chmod fail for non-root users.
i can take care of fixing that.

-dean

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB