Replication for non root user

Status
Not open for further replies.

ilium007

Explorer
Joined
Apr 9, 2012
Messages
61
Hi - I decided to have a play around with running ZFS replication as a non root user. I created a new replication user and attempted the replication but it fails.

I can't see how the non root user option will ever work as the only user with access to the replication private key is root - as shown below in the output of the replication command:

Aug 23 20:31:04 freenas autorepl.py: [common.pipesubr:57] Popen()ing: /usr/bin/ssh -i /data/ssh/replication -o BatchMode=yes -o StrictHostKeyChecking=yes -q -l replication -p 22 freenas-backup.harland "zfs list -Hr -o name -t snapshot -d 1 vol0/replication/photos | tail -n 1 | cut -d@ -f2"
Has anyone managed to get non root ZFS replication to work ?
 

ilium007

Explorer
Joined
Apr 9, 2012
Messages
61
Thats not the issue. You can see from the output in the shell that no matter if you are using root or your replication user account that the script gets the RSA private key from /data/ssh/replication. This file is owned by root. The way I see it is that when you specify a non root replication user there should be a new RSA keypair created and ownership set to the non root user.
 
Status
Not open for further replies.
Top