Users & Groups
- 1 Users & Groups - Introduction
- 2 Support
Users & Groups - Introduction
There is a GUI tool available inside of Manjaro Settings Manager to create, edit, and delete User Accounts. This is the easiest way for beginners.
For intermediate and advanced users, this document summarizes the basic terminal commands for seeing all users on a system; adding & removing users & groups; creating or changing passwords. (Most of these commands require root access --type sudo before the command-- to use them.)
See the man pages of each of the commands if you need a more full understanding or for any options not discussed here see this page: ss64.com
Also see the section on Linux Security which has information related to passwords.
Show all listed users on a system
cut -d: -f1 /etc/passwd
Adding a User
- -d sets home directory for the user (if other than the default which is: /home/<user.name>)
- -m creates the home directory
Deleting a user:
- -r deletes the user as well as the /home/<name.of.user> directory
Creating or changing Passwords:
If changing a password you will be requested for your old password before being able to enter you new one.
Add a group
groupadd [options] <group.name> Note: See the man page for the groupmod command, as is too sophisticated for the limits of this brief how-to.
Delete a group
Check group membership from current account
Modify a groups security
groupmod [options] <group.name> Note: See the man page for the groupmod command, as is too sophisticated for the limits of this brief how-to.
If you have questions you are welcome to ask in the forum Manjaro Forum