3.User management using a terminal
Creating a New User Account (
useradd
):Example:
Setting a Password for the User (
passwd
):Example:
Output:
Adding User to a Group (
usermod
):Example:
Deleting a User Account (
userdel
):Example:
Listing User Accounts (
cat /etc/passwd
orgetent passwd
):Example:
Changing User Information (
usermod
):Example:
Locking and Unlocking User Accounts (
passwd
):To lock a user account:
Example:
To unlock a user account:
Example:
Listing User Groups (
cat /etc/group
orgetent group
):Example:
Last updated
Was this helpful?