This is a series that offers a gentle introduction to Linux for newcomers.
This article explains how to create users on your Ubuntu machine. Let’s start with a brief explanation of groups as they are central to the process.
Groups help define the permissions and access for each user account. They determine who has access to files, directories, settings, devices, and more. Finding out the groups to which a user account belongs helps give you a better understanding of that user’s access (and troubleshoot when things don’t function as expected).
In a default desktop installation, the first user on the system is considered an administrator. That user is a member of various groups. The groups command shows the groups to which a user belongs.
Open a Terminal. At the shell prompt, type the command:
As you can see, the default user (in this case sde) is a member of 9 groups. The first group is specific to the user.
The remaining 8 groups grant the following privileges:
- adm – used for system monitoring tasks. Members of this group can read many log files in /var/log, and can use xconsole;
- cdrom – gives a user access to a CDROM drive and other optical drives;
- sudo – users of this group can execute any command with sudo or pkexec;
- dip – stands for “Dial-up IP”, and membership in dip allows the user to use tools like ppp, dip, wvdial, etc. to dial up a connection;
- plugdev – allows users to mount and umount removable devices through pmount;
- lpadmin – allows users to manage printers and pending jobs sent by other users;
- lxd – allows users to create and manage Linux containers;
- sambashare – gives access to share files with the local network.
On the next two pages, we show you how to create a new user. First, we take you through the process using the graphical interface.
All articles in this series:
|Linux For Starters|
|Part 1||What is Linux? Why use Linux? What do I need?|
|Part 2||Choose a Linux distribution meeting your specific needs and requirements.|
|Part 3||Make a bootable Ubuntu USB stick in Windows.|
|Part 4||We show you how to install Ubuntu 21.04 on your hard disk.|
|Part 5||Things to do after installing Ubuntu.|
|Part 6||Navigating your way around the Desktop.|
|Part 7||Updating the system, install new software.|
|Part 8||Open source replacements for proprietary Windows desktop software.|
|Part 9||Get started with the power and flexibility of the terminal.|
|Part 10||We cover the basics of files and permissions.|
|Part 11||Getting help from your system.|
|Part 12||Learn all about the file system.|
|Part 13||Manipulating files from the shell.|
|Part 14||Maintain your system with these simple tips.|
|Part 15||Managing users on your system.|
|Part 16||Explore different desktops to GNOME 3.|
|Part 17||Gaming on Linux.|
|Part 18||Protect your privacy with this guide.|