summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Hill <ahill@breadpudding.dev>2025-04-20 05:05:54 -0400
committerAlexander Hill <ahill@breadpudding.dev>2025-04-20 05:05:54 -0400
commit0e1e0baad638645449877e50af121355c5fdaa71 (patch)
tree35168a9ee062685a57c81d4165466c52c0a3fb79
parentfd15389adb86a15a56d3bd79b1ec76c2659cd70a (diff)
Fixed login
-rwxr-xr-xbuild-chroot.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/build-chroot.sh b/build-chroot.sh
index cd2fdd4..fa9e18d 100755
--- a/build-chroot.sh
+++ b/build-chroot.sh
@@ -583,11 +583,16 @@ make -j $THREADS install
cd ..
# Basic Configuration
-echo "root:x:0:0::/home/root:/bin/zsh" > /etc/passwd
+echo "root::0:0::/home/root:/bin/zsh" > /etc/passwd
echo "root:x:0:root" > /etc/group
-# NOTE: Password here is "speakfriendandenter" ~ahill
-echo "root:\$6\$mainemaple\$8BwdyloMf5/n5a/n0CqCQ2CKy/OwuNYH/ZEtlByobs.pm9QoMRUu6CbOfyycILI.MQCwd4aXqN58cXpg9mtwy/:20197:0:99999:30:::" > /etc/shadow
echo "maple" > /etc/hostname
+# FIXME: This is enough to get PAM authentication going, but this really should
+# be reviewed before it is put anywhere important. ~ahill
+echo "#%PAM-1.0" > /etc/pam.d/system-auth
+echo "auth required pam_unix.so nullok" >> /etc/pam.d/system-auth
+echo "account required pam_unix.so" >> /etc/pam.d/system-auth
+echo "password required pam_unix.so nullok shadow" >> /etc/pam.d/system-auth
+echo "session required pam_unix.so" >> /etc/pam.d/system-auth
# Finally, make the image bootable.
cp /usr/share/limine/BOOTX64.EFI /boot/EFI/BOOT/