Home / How to copy a file with specific permission over the network ?

How to copy a file with specific permission over the network ?

To copy files with specific permissions over the network,rsync utility can be used.

[root@server-source ~]# rsync --chmod=u+rwx,g+rx,o+rx testingfile user@192.168.0.2:

The above command will copy the testingfile in the user’s home directory, and the permissions to the copied file would be 755.

Leave a Reply