allow ssh to root for unison
authorIan Kelling <ian@iankelling.org>
Mon, 18 Jan 2016 05:25:47 +0000 (21:25 -0800)
committerIan Kelling <ian@iankelling.org>
Mon, 6 Feb 2017 06:21:40 +0000 (22:21 -0800)
fai/config/scripts/GRUB_PC/11-ian

index 24a10ae6f476dfba44a332f0c22f8aaac76cdd1a..18c51ff9b673f9fd657aa58cf2397e46bc0be647 100755 (executable)
@@ -9,6 +9,8 @@ $ROOTCMD usermod -p "$ROOTPW" ian
 /var/lib/fai/config/distro-install-common/end
 
 fcopy -r -m 1000,1000,700 -i /home/ian/.ssh
+cp -ar $target/home/ian/.ssh $target/root
+chown -R root:root $target/root/.ssh
 
 # the defaults in wheezy
 $ROOTCMD usermod -aG cdrom,floppy,sudo,audio,dip,video,plugdev,netdev ian