# rsync -axP /mnt/nilesh_rjoshi /nilesh_rjoshi
While performing rsync I got errors like -
rsync: send_files failed to open…Permission denied (13)& at the end of rsync
rsync error: some files could not be transferred (code 23) at main.c(977) [sender=2.6.9]
The problem was NFS share options was not set properly. we need to use NFS option anon.
share -F nfs -o email@example.com/xx,anon=0 /nilesh_rjoshi/
what anon=uid do?
If a request comes from an unknown user, use uid as the effective user ID.
Note: Root users (uid 0) are always considered ``unknown'' by the NFS server unless they are included in the root option below.
The default value for this option is 65534. Setting anon to 65535 disables anonymous access.
Also if you put value like -1 then disables anonymous access. So if you set anon to -1 it prevents access to root on clients (unless specified using the root option in /etc/exports or dfstab in case of Solaris) and also prevents access to users not defined on the server.
Thanks for solution to My UNIX Guru Alex!