diff --git a/overlays/uzip/furybsd-live-settings/files/usr/local/bin/furybsd-install b/overlays/uzip/furybsd-live-settings/files/usr/local/bin/furybsd-install index 7cc0fe96..4b3b8f4d 100755 --- a/overlays/uzip/furybsd-live-settings/files/usr/local/bin/furybsd-install +++ b/overlays/uzip/furybsd-live-settings/files/usr/local/bin/furybsd-install @@ -91,9 +91,11 @@ mount -t devfs devfs ${FSMNT}/dev # Disable direct root login; users in the wheel group can use sudo instead echo "Disabling direct root login; users in the wheel group can use sudo instead" -# Since /etc/passwd is generated from /etc/master.passwd, do not edit it directly but use pw instead -# chroot "${FSMNT}" pw usermod root -s /usr/sbin/nologin # FIXME: With this, sudo su does not work -chroot "${FSMNT}" pw lock root # FIXME: With this, sudo su does not work +# "Star out" the root password; unlike locking the password this allows sudo su +chroot "${FSMNT}" env EDITOR=ed vipw <