On Tue 11 Dec 2007, Daniel Blaschke wrote:
> 
> When using rsync to copy/sync files in my home directory onto a
> usbstick, I get the following error-message for every single file (after
> it has been copied):
> rsync: chgrp "/media/disk/somefile" failed: Operation not permitted (1)
> 
> The problem appeared after upgrading from etch and is probably related
> to the new behaviour of gnome-volume-manager (or gnome-mount?):
> usbsticks (with FAT filesystem) are automatically mounted with the
> following permissions:
> $ ls -lh /media
> drwxr-xr-x 35 daniel root  16K 1970-01-01 01:00 disk
> 
> In etch this used to be:
> $ ls -lh /media
> drwxr-xr-x 35 daniel daniel  16K 1970-01-01 01:00 usbdisk

The problem is that you're probably using rsync with the -a option
(unfortunately you don't show the used command), and that instructs
rsync to also preserve the group of the files. With the changed mount
options, the group is not yours, hence rsync tries to change the group
(which of course doesn't work with a FAT filesystem).

A workaround is to tell rsync not to preserve the group; either by
not passing -g, or if you're using -a also use --no-g .


Paul Slootman



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

Reply via email to