update to db59a1a2dd 2019-03-07
[automated-distro-installer] / fai / config / scripts / DEBIAN / 10-rootpw
index 7a7f6177a30e398311f8b1659f61114487947767..bb77d1a30f5fe0eb2df8dc43d5abbfc8b80dcdb3 100755 (executable)
@@ -7,6 +7,8 @@ if [ -n "$ROOTPW" ]; then
     $ROOTCMD usermod -p "$ROOTPW" root
 else
     $ROOTCMD usermod -L root
+    # enable sudo for user
+    ainsl /etc/sudoers "$username   ALL = ALL"
 fi
 
 exit $error