Command line user management


Article from Issue 57/2005

Linux is a multiuser system: many users can work at the same machine at the same time on separate accounts. In this month’s column, we take a close look at how to create and manage Linux user accounts from the command line.

Multiuser systems neatly separate individual user workspaces. You can save your own files by assigning appropriate access privileges. The typical Unix/ Linux paradigm of having a separate account for administrative tasks (root) helps prevent the possibility of user errors that might otherwise take down the whole system.

The system administrator, root, is the boss of the whole system; a user needs root privileges to run the commands for setting up and managing user accounts that we will be looking at in this article. After discussing the most important configuration files, we will take an in-depth look at the useradd, usermod, and userdel tools, which allow us to create, manage, and delete accounts.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Admin Workshop: User Management

    The steps for setting up new accounts in Linux are automated and often use GUI-based tools. Under the hood, a number of mechanisms give the new user an environment to match his or her needs. In this month’s Admin Workshop we discuss techniques for setting up accounts.

  • Command Line: Logging Tools

    Many logging and user-related commands can help you check on your system and keep track of security matters. We guide you through several helpful tools.

  • Resettable Lab Accounts

    Let your lab users play, and restore the original settings for the next login.

  • xrdp

    Xrdp helps your Windows terminal clients connect to Linux.

  • Root Password Window

    We’ll show you some tricks for configuring the root password popup window on Red Hat-based systems.

comments powered by Disqus

Direct Download

Read full article as PDF:

Commandline_User_Accounts.pdf (181.37 kB)


njobs Europe
Njobs Netherlands Njobs Deutschland Njobs United Kingdom Njobs Italia Njobs France Njobs Espana Njobs Poland
Njobs Austria Njobs Denmark Njobs Belgium Njobs Czech Republic Njobs Mexico Njobs India Njobs Colombia