-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Jon,

This is not a problem with Rsnapshot but rather with the way permissions are treated.

On 27-Jul-07, at 7:42 AM, Jon Dowland wrote:

[EMAIL PROTECTED]:~/tmp/remove$ find foo -ls
 33415    4 dr-xr-xr-x   2 jon      jon          4096 Jul 27 12:33 foo
33416 0 -r--r--r-- 1 jon jon 0 Jul 27 12:33 foo/bar


/foo needs u+w permission in order for you to be able to create or delete files in it, unless you are root of course.

$ ls -ld foo
dr-xr-xr-x  2 simon simon 6 2007-07-27 19:20 foo
$ touch  foo/bar
touch: cannot touch `foo/bar': Permission denied
$ chmod u+w foo
$ touch  foo/bar
$ chmod u-w foo
$ rm foo/bar
rm: cannot remove `foo/bar': Permission denied


By default, Rsnapshot passes -a to rsync when doing the copy to preserve permissions. If you are running Rsnapshot as root, this will not cause any problems and is most-likely the desired behavior. But in case you are running as a regular user, you will need to make sure all your folders have the right permissions before copying them.

You could change rsnapshot.conf to tell Rsync NOT to preserve permissions, or, in Etch, you can use the new --chmod Rsync argument to force folders to have the u+w permission set (ex. --chmod=Du +rwx). See rsnapshot.conf rsync_short_args and rsync_long_args options.

Hope this helps!

Simon



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFGqoX21jAZg9vxR6wRAitPAJ4nKxhO5dYVcyCX1E7b1GJUmLcy5gCfYHIS
DRrZV+ikWrPp905R9maeEMg=
=/N3L
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to