how to create a test user in a sudo group with a default login shell of bash and a home entry of
/ home/ test.
Plain Text
copy
1
sudo useradd -m -G sudo -s /bin/bash test
To change the password for the user name(test), use the passwd command and enter the new password,
then confirm the change by re-entering the password as shown below.
Plain Text
copy
1
sudo passwd test
2.2.1
Disable
default
account
Use the passwd command to lock the default user account so that users edge cannot log in.
Plain Text
copy
1
2
sudo -i
passwd -l edge