eth0s/rootfs/root/custom_script.sh
2019-11-10 17:50:36 +08:00

13 lines
266 B
Bash
Executable file

#!/bin/bash
USER=lfs
PASSWORD=lfs
useradd -m -G users,wheel,audio,video -s /bin/bash $USER
passwd -d $USER &>/dev/null
passwd -d root &>/dev/null
echo "root:root" | chpasswd -c SHA512
echo "$USER:$PASSWORD" | chpasswd -c SHA512
echo "lfs-livecd" > /etc/hostname