-
-
Notifications
You must be signed in to change notification settings - Fork 2
Arch Linux User Groups
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to user and group management on Arch Linux, including creating users, managing groups, permissions, and user administration.
Add user:
# Create user
sudo useradd -m -G wheel username
# Set password
sudo passwd usernameModify user:
# Change shell
sudo usermod -s /bin/zsh username
# Add to group
sudo usermod -aG group-name username
# Lock account
sudo usermod -L username
# Unlock account
sudo usermod -U usernameRemove user:
# Remove user
sudo userdel username
# Remove with home
sudo userdel -r usernameAdd group:
# Create group
sudo groupadd group-name
# Add user to group
sudo usermod -aG group-name usernameImportant groups:
- wheel: Sudo access
- audio: Audio devices
- video: Video devices
- optical: Optical drives
- storage: Storage devices
- scanner: Scanners
- lp: Printers
Remove group:
# Remove group
sudo groupdel group-nameSet permissions:
# Change permissions
chmod 755 file
chmod u+x file
chmod g-w file
# Recursive
chmod -R 755 directoryChange ownership:
# Change owner
sudo chown user:group file
# Recursive
sudo chown -R user:group directoryGet user info:
# User info
id username
# List users
cat /etc/passwd
# List groups
cat /etc/groupConfigure sudo:
# Edit sudoers
sudo visudo
# Ensure wheel group
%wheel ALL=(ALL) ALLThis guide covered user management, group management, permissions, and user administration.
- Arch Linux System Configuration - System setup
- Arch Linux Security Configuration - Security
- ArchWiki User Management: https://wiki.archlinux.org/title/Users_and_groups
This guide is based on the ArchWiki. For the most up-to-date information, always refer to the official ArchWiki.