PDA

View Full Version : rsync tutorial with ispconfig


commentator
12th April 2009, 00:55
Hi,

Found the rsync tutorial today (http://www.howtoforge.com/mirroring_with_rsync)

When running it as someuser it doesn't have permissions to copy the Maildir folders. So I have to run it as root.

Is it possible to make a key, as in tutorial, for root user so the script can run without password? (without effecting the normal root login)
Or is there an other option to get it working?

falko
12th April 2009, 15:54
Is it possible to make a key, as in tutorial, for root user so the script can run without password?
Yes, that's possible. Make sure that direct root logins are enabled in your sshd_config.

bernholdt
7th July 2009, 22:36
To make it run as root
Do i have to do the following steps as root ?

server1:

(Please do this as someuser!)

mkdir ~/.ssh
chmod 700 ~/.ssh
mv ~/mirror-rsync-key.pub ~/.ssh/
cd ~/.ssh
touch authorized_keys
chmod 600 authorized_keys
cat mirror-rsync-key.pub >> authorized_keys

falko
8th July 2009, 15:30
Yes, that's right.