On 05/03/13 06:16, Mark Rogers wrote:
On 4 March 2013 16:53, Chris Walker cdw_alug@the-walker-household.co.uk wrote:
Having dutifully followed advice and backed up my NAS drive using rsync, I have formatted the NAS and now want to write the contents of the rynced drive back to the NAS. But it gives me lots of 'Permission Denied' errors.
I'm unclear where you're seeing the GID of 199528447 appear, is it in this error message?
Nope. Having seen the message on the console, using the file manager I then right click on the folder into which I am trying to write. I then look at Permissions and it is there that the user/group are displayed.
AIUI[*], when you rsync from host A to host B, if the same user/group appears on both systems then ownership should be retained even though the user/group ID (provided you told rsync to retain owner information, which is implied by -a, although something that didn't get mentioned in previous conversations is that rsync can only retain owner information if run as root). This begs the question of what happens if the user on host A doesn't exist on host B - I believe that in that case the numeric ID is retained.
Ok. So if I then list, for example, the directory shown below on the Seagate drive, it gives me this (just a couple of files shown) :-
ls -l /media/Seagate\ Backup\ Plus\ Drive/Epox_Share/Drive_C/Library/ total 12465 -rw------- 1 chris cdrom 936885 Feb 28 16:08 5_Fonts.zip -rw------- 1 chris cdrom 23552 Feb 28 16:08 aefdisk.zip
But using this command :- rsync -r /media/Seagate\ Backup\ Plus\ Drive/Epox_Share/Drive_C/Library /media/Epox_Share/Drive_C/
I get this :- rsync: recv_generator: mkdir "/media/Epox_Share/Drive_C/Library" failed: Permission denied (13) *** Skipping any contents from this failed directory ***
[snip]
Hopefully somewhere in all that will be an explanation that matches your symptoms? All comments about user(owner)/uid apply equally to group/gid.
I'm afraid I don't understand that. Following an explanation on here some time ago, I thought I had begun to get a grip on groups etc but plainly I didn't!
But dredging the memory banks, if I type 'groups' I get this :- cdrom wheel usb cdwriter users vboxusers
So looking at what groups are shown for the Seagate Library folder, it seems I *am* a member of the cdrom group so why can't I write the files/create directories etc on the NAS?