User accounts in UNIX can be managed using the command line utility useradd.
For example, to create a new user account for John Smith, you would run the following command:
useradd -m -d /home/johnsmith -s /bin/bash -c “John Smith” johnsmith
This command will create a home directory for the new user (/home/johnsmith), set their default shell to bash (/bin/bash), and add a comment to their account (John Smith).
To set a password for the new user account, you can use the passwd command:
passwd johnsmith
This will prompt you to enter and confirm the password for the new user account.
Finally, to assign the new user to a group, you can use the usermod command:
usermod -aG groupname johnsmith
This will add the new user to the specified group.