This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Rsync as non root user

Synchronize files & directories to/from XigmaNAS with minimal data transfer.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
bxOddu2hGL3D
NewUser
NewUser
Posts: 2
Joined: 13 Jul 2013 04:04
Status: Offline

Rsync as non root user

Post by bxOddu2hGL3D »

I am trying to use rsync with a non root user, but am getting errors because of permissions.

The three solutions seem to be:

1. use the root user for rsync - not ideal, as I'd like to disable root login over ssh
2. modifying the files permissions so that the non root user can read and write everything - easier, but it would be better to keep the files original permissions
3. allow the non root user to execute rsync as super user:

eg http://serverfault.com/questions/136549 ... both-sides
https://unix.stackexchange.com/question ... nd-folders

This seems to be the best way to go, but it needs sudo to work. Is it possible with a Freebsd system? I have passwordless ssh set up.

My first thought would be to make the rsync user's group wheel and somehow use "su". Or install sudo instead?

Post Reply

Return to “RSYNC”