[[advanced:target]]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
advanced:target [2018/10/05 00:12] – [Build ZFS on Linux] Already installed build-essential above, so not needed here danadvanced:target [2018/10/05 12:41] dan
Line 69: Line 69:
  
 ===== Create a replication user ===== ===== Create a replication user =====
-For the sake of security, it would be best if replication to this device ran as a user other than root.  Start by creating the user:+For the sake of security, it would be best if replication to this device ran as a user other than root.  First, create a user in the FreeNAS web GUI called ''zfsuser'' Note the numeric userid for that user
 + 
 +Then, on the Odroid, as root, run
 <code> <code>
-adduser zfsuser+adduser zfsuser -u userid -s /bin/false
 </code> </code>
-Disable login for that user:+where "userid" is the numeric user ID noted on the FreeNAS box. 
 + 
 +Now allow that user to make changes on the encrypted dataset:
 <code> <code>
-chsh -/bin/false zfsuser+zfs allow -ldu zfsuser create,destroy,diff,mount,readonly,receive,release,send,userprop dozer/backup
 </code> </code>
-Generate a SSH keypair for that user:+===== Install Zerotier ===== 
 +Zerotier will create an encrypted virtual network connection between your Odroid and your FreeNAS box.  It's installed by default on FreeNAS, but you'll need to install it on the Odroid.  Run these commands:
 <code> <code>
-sudo -u zfsuser ssh-keygen+sudo apt install curl 
 +curl https://install.zerotier.com | sudo bash
 </code> </code>
-Now allow that user to make changes on the encrypted dataset: 
-<code> 
-zfs allow -ldu zfsuser create,destroy,diff,mount,readonly,receive,release,send,userprop dozer/backup 
-</code> 
- 
  • advanced/target.txt
  • Last modified: 2018/10/10 00:02
  • by dan