Sharing a computer in a household is usually a pretty casual affair. When you need the computer, you pick it up and start using it. It's simple in theory, and mostly works. That is, until you accidentally grab the common computer and accidentally post screenshots of your server's uptime to your partner's cooking blog. Then it's time for separate user accounts.
From the very beginning, Linux has been a multi-user system. It's designed to treat each user, so long as they log in, as a unique human being, with a desktop all their own, a unique web browser profile, access to their own documents and files, and so on. The KDE Plasma Desktop does a lot to make it easy to switch from one account to another, but first you must set up a user account for each person who you expect to use a computer. You might also set up a special account for guests (I call this account, pragmatically, guest.)
Add a user in KDE
There are different ways to add users on Linux. One way is the sysadmins-style of using the terminal. This is very efficient when you have lots of users to add, and so you want to automate the process or just reduce the number of mouse clicks.
In the Plasma Desktop, though, you can add users with the Users application. Users is actually a control panel in System Settings, but you can launch it from your application menu as if it were a stand-alone app.
To add a user, click the Add New User button at the bottom of the window.
Give the new user a name and a username. These can be the same thing, but the intent is that their name is their birth name, while their username is a simple handle they use for computing. For instance, my name is "Seth Kenlon", while my username is
Designate the new user as either a standard user or an administrator. Standard users have full control over just their own environment. They can install Flatpaks and save data to their home directory, but they can't affect other users on the machine. This is one of the advantages of having user accounts. I don't suspect that anyone I allow to use my computer intends to delete data that's important to me, but accidents happen. By creating a separate user account for myself and my partner, I'm protecting each of our data, and I'm protecting each of us individually from accidentally moving a file or misplacing data that's important to the other.
An administrator can make systemwide changes. I usually reserve this for myself on my computer, and I expect my partner to reserve that role for herself on her own computer. At work, however, that role belongs to the IT department.
Create a password for the user. Once logged in, new users can change their passwords.
To finalize user creation, click the Create button.
There are two different ways to switch users at the desktop level. You can log out and then let the other user log in, or you can choose Switch user from the Power / Sessions category in your application menu.
When a new user logs in, your desktop is "frozen" or paused, and a new desktop is brought up for the other user. All of your windows remain open. You can even switch users in the middle of a game (you should probably pause first if you're in the middle of combat), and when you switch back you can pick right up where you left off. Better still, all of your processes continue to run, too. So you can switch users while rendering video or compiling code, and when you switch back your video will have finished rendering, or your code will have finished compiling (provided enough time has elapsed.)
Deleting a user
When I have house guests, I often create a guest account for the duration of their stay, and then I remove the account once they've gone.
You can remove a user from your computer by deleting their user account. This removes all of their data, so make sure that the user you're about to delete has migrated what they need off of the machine!
The Delete User button is located in each user account in the Users control panel, where you created the user in the first place.
Linux user management
Maintaining separate users on a computer is a luxury, and a great way to keep your own data, and the data of those you care about, safe. It allows each user to be unique, and to make the desktop their own. With Linux, it's easy and nondisruptive, so create users for friends, houseguests, and family members.
Comments are closed.