Home
| Calendar
| Mail Lists
| List Archives
| Desktop SIG
| Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU |
On Thu, Nov 12, 2009 at 03:14:15PM -0500, Chris O'Connell wrote: > HI Everyone, > > I hate to post this in here, but I've been working on this for some time > without a resolution. My problem is that when this program is executed by > the super user, I'm always prompted for a password when the RSYNC connection > is trying to be made. If I execute as non super user (ADMINISTRATOR), the > archive is not created. > > > Any thoughts about : > A) How I could either give the administrator permission to backup the /home > folder > or > B) Have the Rsync process know the password for the Administrator account > so I'm not always prompted? Your actual line seems to be: rsync -e ssh -varuzP /backup/BACKUP-NEDS-LX-1-`date +%Y-%m-%d`.tar.gz administrator-Q0ErXNX1RuYmaKRe3I/nfg at public.gmane.org:/backup/ Here's what you need to do: ssh-keygen -t rsa -b 2048 -C "administrator rsync key" -f admin.key Put in no passphrase. Edit admin.key.pub to add this at the beginning of the first line: from=192.168.247.10,no-X11-forwarding,no-port-forwarding,no-agent-forwarding,no-pty Change 192.168.247.10 to the IP address of the machine you are working on. This is for security's sake. You may also want to append ,command="rsync" or a variant thereon. ssh-copy-id -i admin.key.pub 192.168.247.34 That appends the key to administrator's ~/.ssh/authorized_keys And finally, change your line to: rsync -e "ssh -i admin.key" -varuzP /backup/BACKUP-NEDS-LX-1-`date +%Y-%m-%d`.tar.gz administrator-Q0ErXNX1RuYmaKRe3I/nfg at public.gmane.org:/backup/ -dsr- -- http://tao.merseine.nu/~dsr/eula.html is hereby incorporated by reference. You can't defend freedom by getting rid of it.
BLU is a member of BostonUserGroups | |
We also thank MIT for the use of their facilities. |