Users & Groups

From Manjaro Linux
Jump to: navigation, search

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: [1]


User Commands

Show all listed users on a system

cut -d: -f1 /etc/passwd


Adding a User

useradd <name.of.user>

Options:

  • -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:

userdel <name.of.user>

Options:

  • -r deletes the user as well as the /home/<name.of.user> directory


Creating or changing Passwords:

   passwd <user.name>

If changing a password you will be requested for your old password before being able to enter you new one.


Group commands

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

groupdel <group.name>


Check group membership from current account

groups


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.

Support

Following is a link to this page's forum counterpart where you can post any related feedback: [2]