# applies it. it would be also be applied after a reboot
$ROOTCMD sysctl --system
+if getent group sudo >/dev/null; then
+ usermod -aG sudo iank
+fi
+
cat >$target/etc/sudoers.d/ianksudoers <<'EOF'
Defaults timestamp_timeout=1440
# used in bashrc
Defaults>root env_file=/etc/rootsudoenv
EOF
+case $HOSTNAME in
+ li|bk|je)
+ cat >>$target/etc/sudoers.d/ianksudoers <<'EOF'
+iank ALL=(ALL) NOPASSWD: ALL
+EOF
+ ;;
+esac
+
# remove old config line. can be removed eventually.
f=$target/etc/sudoers
line='iank ALL=(ALL) NOPASSWD: ALL'