LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Rsync operations not permitted (https://www.linuxquestions.org/questions/linux-newbie-8/rsync-operations-not-permitted-4175540380/)

JJJCR 04-22-2015 01:48 AM

Rsync operations not permitted
 
hello guys, just want to ask I have files on the server running SUSE 11 and i rsync to My WD Cloud via NFS.

but i notice some it shows some error like "This operation is not permitted"

I had used rsync -av parameters.

But when I used rsync -rltuv parameters it seems to work fine.

Why rsync -av parameter is used there are errors even though I set on WD My Cloud shared folder as the permissions as 777?

Thanks for any input.

vincix 04-22-2015 01:52 AM

Can you show exactly what errors you're talking about?

rknichols 04-22-2015 12:56 PM

It would apparently be due to one of the "-p", "-g", or "-o" options, which are included by "-a" but are not in your "-rltuv" options that do work. If you are not running rsync as root, then it's probably due to "-o" trying to preserve an owner that is not you or "-g" trying to preserve a group to which you do not belong.

If the NFS mount does not include the "no_root_squash" option, then root permissions for rsync will not propagate to the server (you will get the "nfsnobody" ID).

JJJCR 04-23-2015 05:04 AM

hi rknichols, this is the /etc/exports contents.

Quote:

/nfs *(rw,all_squash,sync,no_subtree_check,insecure,crossmnt,anonuid=65534,anongid=1000)
"no_root_squash" option what does it do?

Thank you. :)

rknichols 04-23-2015 09:11 AM

Quote:

Originally Posted by JJJCR (Post 5351737)
"no_root_squash" option what does it do?

In the presence of "all_squash" it won't do anything. "Squashing" refers to the mapping of IDs from the client to the anonuid and anongid (here, 65534 and 1000) on the server. By default, the root UID gets squashed and non-root UIDs are preserved. The "no_root_squash" would prevent that and allow full root permissions to propagate to the server. But, "all_squash" squashes all UIDs/GIDs to 65534/1000, and rsync will not be able to preserve the UID or GID of the source.

JJJCR 04-24-2015 01:32 AM

Thanks rknichols...

When I use rsync for whatever reason it seems that rsync goes into loop copying..

It copies again the files from the start and it would just never end.

I press Ctrl+c to terminate rsync, now I'm using tar to copy the directory.

I'm copying from Netgear NAS to WD My Cloud.

I will update this post, if tar is okay.


All times are GMT -5. The time now is 09:02 PM.