mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-17 03:19:05 +01:00
archlinux: Lock the root account
No need to log in to the root account since we already configured a user with sudo rights.
This commit is contained in:
parent
8d41afb5f7
commit
dc261e58ad
@ -29,3 +29,6 @@ echo "%wheel ALL=(ALL) ALL" > /mnt/etc/sudoers.d/01_wheel_all
|
||||
|
||||
# Create a new user account with sudo privileges and the fish shell.
|
||||
arch-chroot /mnt useradd -m -g users -G wheel -s /usr/bin/fish "$USERNAME"
|
||||
|
||||
# Lock the root account (i.e. disable root login)
|
||||
arch-chroot /mnt passwd -l root
|
||||
|
@ -42,9 +42,6 @@ env DISTSIZE="$DISTSIZE" ./001-preinstall
|
||||
env HOSTNAME="$HOSTNAME" HIDPI="$HIDPI" ./003-configure
|
||||
env USERNAME="$USERNAME" ./004-postinstall
|
||||
|
||||
echo "Enter a password for the root user..."
|
||||
arch-chroot /mnt passwd
|
||||
|
||||
echo "Enter a password for $USERNAME..."
|
||||
arch-chroot /mnt passwd "$USERNAME"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user