User & Group Management
Complete guide to managing users and groups, including permissions, roles, access control, and organizational hierarchy setup for secure systems.
Articles in User & Group Management
-
How to modify a group → groupmod
Learn how to modify Linux groups using the groupmod command. Complete guide with syntax, options, examples, and troubleshooting for system administrators.
-
How to delete a group → groupdel
Learn how to delete groups in Linux using the groupdel command. Complete guide with syntax, examples, troubleshooting, and best practices for system administrators.
-
How to add a group → groupadd
Learn how to add groups in Linux using the groupadd command. Complete guide with syntax, options, examples, troubleshooting, and best practices for system administrators.
-
How to modify a user → usermod
Learn how to modify user accounts in Linux using the usermod command. Complete guide with examples, options, troubleshooting, and best practices for system administrators.
-
How to delete a user → deluser / userdel
Learn how to safely delete users in Linux using deluser and userdel commands. Complete guide with examples, troubleshooting, and best practices for user management.
-
How to add a new user → adduser / useradd
Learn how to add new users in Linux using adduser and useradd commands. Complete guide with examples, options, troubleshooting, and best practices for system administration.
-
How to change user password → passwd
Learn how to change user passwords using the passwd command in Linux/Unix systems. Complete guide with examples, security tips, and troubleshooting for all skill levels.
-
How to display all logged users → users
Learn how to display all logged users in various operating systems and applications. Complete guide with commands, tools, and troubleshooting tips for system administrators.
-
How to run command as root → sudo
Learn how to use sudo to run commands as root in Linux. Complete guide covering installation, configuration, examples, security best practices, and troubleshooting.
-
How to switch user → su
Learn how to switch users in Linux using the su command. Complete guide with syntax, examples, troubleshooting, and best practices for secure user switching.
-
How to show user activity → w
Learn how to monitor and display user activity using the 'w' command in Linux/Unix systems. Complete guide with examples, troubleshooting, and best practices.
-
How to show user’s groups → groups
Learn how to display user groups across different systems - from Linux commands to database queries. Complete guide with examples, troubleshooting, and best practices.
-
How to show UID/GID info → id
Learn how to use the id command to display user and group information in Linux/Unix systems. Complete guide with examples, troubleshooting, and best practices.
-
How to list logged-in users → who
Learn how to use the 'who' command to list logged-in users on Linux/Unix systems. Complete guide with examples, options, troubleshooting, and best practices.
-
How to show current user → whoami
Learn how to use the whoami command to identify the current user in Linux, macOS, and Windows. Complete guide with examples, troubleshooting, and best practices.