diff --git a/auto/config b/auto/config index 991eada..4da05e0 100755 --- a/auto/config +++ b/auto/config @@ -136,8 +136,8 @@ lb config noauto \ --iso-volume "Kali Live" \ --linux-packages linux-image \ --memtest memtest86 \ - --bootappend-live "boot=live components splash username=root hostname=kali" \ - --bootappend-live-failsafe "boot=live components username=root hostname=kali memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal" \ + --bootappend-live "boot=live components splash username=kali hostname=kali" \ + --bootappend-live-failsafe "boot=live components username=kali hostname=kali memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal" \ --bootappend-install "net.ifnames=0" \ --security false \ $lb_opts \ diff --git a/kali-config/common/hooks/live/forensic-menu.binary b/kali-config/common/hooks/live/forensic-menu.binary index d0c764b..e01ab3f 100755 --- a/kali-config/common/hooks/live/forensic-menu.binary +++ b/kali-config/common/hooks/live/forensic-menu.binary @@ -10,6 +10,6 @@ label live-forensic menu label Live (^forensic mode) linux /live/vmlinuz initrd /live/initrd.img - append boot=live noconfig=sudo username=root hostname=kali noswap noautomount + append boot=live username=kali hostname=kali noswap noautomount END diff --git a/kali-config/common/hooks/live/persistence-menu.binary b/kali-config/common/hooks/live/persistence-menu.binary index 30a398b..1013283 100755 --- a/kali-config/common/hooks/live/persistence-menu.binary +++ b/kali-config/common/hooks/live/persistence-menu.binary @@ -10,13 +10,13 @@ label live-persistence menu label ^Live USB Persistence (check kali.org/prst) linux /live/vmlinuz initrd /live/initrd.img - append boot=live noconfig=sudo username=root hostname=kali persistence + append boot=live username=kali hostname=kali persistence label live-encrypted-persistence menu label ^Live USB Encrypted Persistence (check kali.org/prst) linux /live/vmlinuz initrd /live/initrd.img - append boot=live persistent=cryptsetup persistence-encryption=luks noconfig=sudo username=root hostname=kali persistence + append boot=live persistent=cryptsetup persistence-encryption=luks username=kali hostname=kali persistence END diff --git a/kali-config/common/includes.chroot/usr/lib/live/config/0031-root-password b/kali-config/common/includes.chroot/usr/lib/live/config/0031-root-password deleted file mode 100755 index 02bdc52..0000000 --- a/kali-config/common/includes.chroot/usr/lib/live/config/0031-root-password +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -# Set "toor" as root password -usermod -p 'X014elvznJq7E' root - diff --git a/kali-config/common/includes.chroot/usr/lib/live/config/1165-fix-openssh-server b/kali-config/common/includes.chroot/usr/lib/live/config/1165-fix-openssh-server index 69df58e..30b9ac8 100755 --- a/kali-config/common/includes.chroot/usr/lib/live/config/1165-fix-openssh-server +++ b/kali-config/common/includes.chroot/usr/lib/live/config/1165-fix-openssh-server @@ -2,6 +2,3 @@ # Allow PasswordAuthentification in sshd config sed -i -e 's|#\?\(PasswordAuthentication\) no|\1 yes|' /etc/ssh/sshd_config - -# Allow root login with password -sed -i -e 's|#\?\(PermitRootLogin\) prohibit-password|\1 yes|' /etc/ssh/sshd_config diff --git a/kali-config/common/includes.installer/preseed.cfg b/kali-config/common/includes.installer/preseed.cfg index 7e43287..a5cf8b0 100644 --- a/kali-config/common/includes.installer/preseed.cfg +++ b/kali-config/common/includes.installer/preseed.cfg @@ -31,8 +31,8 @@ d-i pkgsel/upgrade select full-upgrade # d-i netcfg/get_hostname string kali # d-i netcfg/get_hostname seen false -# Do not create a normal user account -# d-i passwd/make-user boolean false +# Disable the root user entirely +d-i passwd/root-login boolean false # Enable eatmydata in kali-installer to boost speed installation d-i preseed/early_command string anna-install eatmydata-udeb