To add a user that is separate from root.
Use this command to add the user homersimpson:
useradd -g users -u 1001 -d /home/homersimpson -s /bin/bash -m homersimpson
awk -F: '{if ($3 >= 1000) { print $0 } }' /etc/passwd
useradd -M homersimpson
Set a password for the new user with the passwd command:
passwd homersimpson
Older Revisions • July 30, 2022 at 9:29 pm • Jon