X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=fai%2Fconfig%2Fscripts%2FDEBIAN%2F10-rootpw;h=bb77d1a30f5fe0eb2df8dc43d5abbfc8b80dcdb3;hp=7a7f6177a30e398311f8b1659f61114487947767;hb=f8e7e925a0eba5b0091354ccf26842bcfda9b84e;hpb=bc3037fe2075e33b0035fc0689f44a60381638f9 diff --git a/fai/config/scripts/DEBIAN/10-rootpw b/fai/config/scripts/DEBIAN/10-rootpw index 7a7f617..bb77d1a 100755 --- a/fai/config/scripts/DEBIAN/10-rootpw +++ b/fai/config/scripts/DEBIAN/10-rootpw @@ -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