[[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:11] – [Rebuild the kernel] danadvanced:target [2018/10/05 00:40] – [Create a replication user] dan
Line 32: Line 32:
 These instructions are taken from the [[https://github.com/zfsonlinux/zfs/wiki/Building-ZFS|ZFSonLinux Wiki]].  First, install the necessary dependencies: These instructions are taken from the [[https://github.com/zfsonlinux/zfs/wiki/Building-ZFS|ZFSonLinux Wiki]].  First, install the necessary dependencies:
 <code> <code>
-sudo apt install build-essential autoconf libtool gawk alien fakeroot zlib1g-dev uuid-dev libattr1-dev libblkid-dev libselinux-dev libudev-dev parted lsscsi ksh libssl-dev libelf-dev+sudo apt install autoconf libtool gawk alien fakeroot zlib1g-dev uuid-dev libattr1-dev libblkid-dev libselinux-dev libudev-dev parted lsscsi ksh libssl-dev libelf-dev
 </code> </code>
 Then download, build, and install the ZFS code: Then download, build, and install the ZFS code:
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> +
-Disable login for that user: +
-<code> +
-chsh -s /bin/false zfsuser+
 </code> </code>
 +where "userid" is the numeric user ID noted on the FreeNAS box.
 +
 Generate a SSH keypair for that user: Generate a SSH keypair for that user:
 <code> <code>
  • advanced/target.txt
  • Last modified: 2018/10/10 00:02
  • by dan