Browse Source

No root loginz

pull/2/head
j3s 11 months ago
parent
commit
82f1e8c49a
  1. 5
      archlinux/build

5
archlinux/build

@ -85,14 +85,13 @@ run_root groupadd sudo
run_root useradd -mG sudo cyberian
run_root passwd -d cyberian
echo '%sudo ALL=(ALL) NOPASSWD: ALL' >> $root/etc/sudoers
# why?
echo 'source /etc/profile.d/perlbin.sh' > $root/home/cyberian/.bashrc
echo 'export EDITOR=true' > $root/home/cyberian/.bashrc
run_root mkdir -p "/home/cyberian/.ssh"
run_root chmod 700 "/home/cyberian/.ssh"
run_root chown cyberian "/home/cyberian/.ssh"
sed -e 's/#PasswordAuthentication yes/PasswordAuthentication no/' -i $root/etc/ssh/sshd_config
sed -e 's/#PermitRootLogin prohibit-password/PermitRootLogin no/' -i $root/etc/ssh/sshd_config
run_root systemctl enable sshd
cat >> "$root"/etc/fstab << EOF

Loading…
Cancel
Save