Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Does work, but be carefull of user and group' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Does work, but be carefull of user and group
Authored by: kd4ttc on Dec 02, '04 04:25:10PM

rsync in this example does work, but the script is misleading in this way: The user specification must be root, and you must have the root user enabled on the server. That is because when SSH logs in it logs in as root, then when writing the files the rsync daemon expects that root permission is to be used for writing the files. If you want to use rsync and not use the root user it can be done, but the user and group in the rsync profile must be appropriate. The reason the example is misleading is that remoteuser is specified as a variable set to root. In this case it must be root and you cannot change it in the code and expect things to work with the given daemon configuration files.

There is a way to log in with SSH where you log in under one user's name, but then run rsync as root. See the SSH man pages for how to do this.

By the way there is a typo in the description. In the daemon configuration the lines ought to be "read only" rathen than "read inly" in 2 places.

Steve



[ Reply to This | # ]