×
1 Choose EITC/EITCA Certificates
2 Learn and take online exams
3 Get your IT skills certified

Confirm your IT skills and competencies under the European IT Certification framework from anywhere in the world fully online.

EITCA Academy

Digital skills attestation standard by the European IT Certification Institute aiming to support Digital Society development

LOG IN TO YOUR ACCOUNT

CREATE AN ACCOUNT FORGOT YOUR PASSWORD?

FORGOT YOUR PASSWORD?

AAH, WAIT, I REMEMBER NOW!

CREATE AN ACCOUNT

ALREADY HAVE AN ACCOUNT?
EUROPEAN INFORMATION TECHNOLOGIES CERTIFICATION ACADEMY - ATTESTING YOUR PROFESSIONAL DIGITAL SKILLS
  • SIGN UP
  • LOGIN
  • INFO

EITCA Academy

EITCA Academy

The European Information Technologies Certification Institute - EITCI ASBL

Certification Provider

EITCI Institute ASBL

Brussels, European Union

Governing European IT Certification (EITC) framework in support of the IT professionalism and Digital Society

  • CERTIFICATES
    • EITCA ACADEMIES
      • EITCA ACADEMIES CATALOGUE<
      • EITCA/CG COMPUTER GRAPHICS
      • EITCA/IS INFORMATION SECURITY
      • EITCA/BI BUSINESS INFORMATION
      • EITCA/KC KEY COMPETENCIES
      • EITCA/EG E-GOVERNMENT
      • EITCA/WD WEB DEVELOPMENT
      • EITCA/AI ARTIFICIAL INTELLIGENCE
    • EITC CERTIFICATES
      • EITC CERTIFICATES CATALOGUE<
      • COMPUTER GRAPHICS CERTIFICATES
      • WEB DESIGN CERTIFICATES
      • 3D DESIGN CERTIFICATES
      • OFFICE IT CERTIFICATES
      • BITCOIN BLOCKCHAIN CERTIFICATE
      • WORDPRESS CERTIFICATE
      • CLOUD PLATFORM CERTIFICATENEW
    • EITC CERTIFICATES
      • INTERNET CERTIFICATES
      • CRYPTOGRAPHY CERTIFICATES
      • BUSINESS IT CERTIFICATES
      • TELEWORK CERTIFICATES
      • PROGRAMMING CERTIFICATES
      • DIGITAL PORTRAIT CERTIFICATE
      • WEB DEVELOPMENT CERTIFICATES
      • DEEP LEARNING CERTIFICATESNEW
    • CERTIFICATES FOR
      • EU PUBLIC ADMINISTRATION
      • TEACHERS AND EDUCATORS
      • IT SECURITY PROFESSIONALS
      • GRAPHICS DESIGNERS & ARTISTS
      • BUSINESSMEN AND MANAGERS
      • BLOCKCHAIN DEVELOPERS
      • WEB DEVELOPERS
      • CLOUD AI EXPERTSNEW
  • FEATURED
  • SUBSIDY
  • HOW IT WORKS
  •   IT ID
  • ABOUT
  • CONTACT
  • MY ORDER
    Your current order is empty.
EITCIINSTITUTE
CERTIFIED

What commands can be used to manage user accounts in Linux?

by EITCA Academy / Saturday, 05 August 2023 / Published in Cybersecurity, EITC/IS/LSA Linux System Administration, Basic Linux sysadmin tasks, User account management, Examination review

To manage user accounts in a Linux system, there are several commands available that provide administrators with the necessary tools to create, modify, and delete user accounts. These commands offer a range of functionality, allowing for fine-grained control over user permissions and access privileges. In this answer, I will discuss some of the most commonly used commands for user account management in Linux.

1. useradd: The useradd command is used to create a new user account in Linux. When creating a new user, you can specify various parameters such as the username, user ID, home directory, default shell, and more. For example, to create a new user named "john" with a user ID of 1001 and a home directory of "/home/john", the following command can be used:

   useradd -u 1001 -d /home/john john
   

2. passwd: The passwd command is used to set or change the password for a user account. By default, only the root user or a user with sudo privileges can change another user's password. To change the password for a user, simply execute the passwd command followed by the username. For example, to change the password for the user "john", you can use the following command:

   passwd john
   

After executing this command, you will be prompted to enter and confirm the new password.

3. usermod: The usermod command is used to modify existing user accounts. It allows administrators to change various attributes of a user, such as the username, user ID, home directory, default shell, and more. For example, to change the default shell for the user "john" to "/bin/bash", you can use the following command:

   usermod -s /bin/bash john
   

This command will modify the user account and set the default shell to "/bin/bash".

4. userdel: The userdel command is used to delete user accounts from the system. When deleting a user account, you can choose to remove the user's home directory and mail spool or retain them. By default, the userdel command only removes the user account and leaves the home directory intact. To delete a user account and remove the associated home directory, you can use the following command:

   userdel -r john
   

This command will delete the user account "john" and remove the home directory.

5. chage: The chage command is used to modify the password expiry information for a user account. It allows administrators to set password expiration dates, disable password aging, and more. For example, to set the password for the user "john" to expire in 30 days, you can use the following command:

   chage -M 30 john
   

This command will modify the password expiry information for the user "john" and set the maximum password age to 30 days.

These are just a few examples of the commands available for managing user accounts in Linux. Each command provides a specific set of functionalities that enable administrators to perform various tasks related to user account management. By utilizing these commands effectively, administrators can maintain a secure and organized user environment within a Linux system.

Other recent questions and answers regarding Examination review:

  • How can the useradd command be used to create a new user account?
  • What is the purpose of the `/etc/shadow` file?
  • How are passwords stored and managed in Linux?
  • What are the three important files for user account management in Linux system administration?

More questions and answers:

  • Field: Cybersecurity
  • Programme: EITC/IS/LSA Linux System Administration (go to the certification programme)
  • Lesson: Basic Linux sysadmin tasks (go to related lesson)
  • Topic: User account management (go to related topic)
  • Examination review
Tagged under: Command Line, Cybersecurity, Linux, Linux System Administration, User Account Management
Home » Cybersecurity » EITC/IS/LSA Linux System Administration » Basic Linux sysadmin tasks » User account management » Examination review » » What commands can be used to manage user accounts in Linux?

Certification Center

USER MENU

  • My Account

CERTIFICATE CATEGORY

  • EITC Certification (105)
  • EITCA Certification (9)

What are you looking for?

  • Introduction
  • How it works?
  • EITCA Academies
  • EITCI DSJC Subsidy
  • Full EITC catalogue
  • Your order
  • Featured
  •   IT ID
  • EITCA reviews (Medium publ.)
  • About
  • Contact

EITCA Academy is a part of the European IT Certification framework

The European IT Certification framework has been established in 2008 as a Europe based and vendor independent standard in widely accessible online certification of digital skills and competencies in many areas of professional digital specializations. The EITC framework is governed by the European IT Certification Institute (EITCI), a non-profit certification authority supporting information society growth and bridging the digital skills gap in the EU.
Eligibility for EITCA Academy 90% EITCI DSJC Subsidy support
90% of EITCA Academy fees subsidized in enrolment

    EITCA Academy Secretary Office

    European IT Certification Institute ASBL
    Brussels, Belgium, European Union

    EITC / EITCA Certification Framework Operator
    Governing European IT Certification Standard
    Access contact form or call +32 25887351

    Follow EITCI on X
    Visit EITCA Academy on Facebook
    Engage with EITCA Academy on LinkedIn
    Check out EITCI and EITCA videos on YouTube

    Funded by the European Union

    Funded by the European Regional Development Fund (ERDF) and the European Social Fund (ESF) in series of projects since 2007, currently governed by the European IT Certification Institute (EITCI) since 2008

    Information Security Policy | DSRRM and GDPR Policy | Data Protection Policy | Record of Processing Activities | HSE Policy | Anti-Corruption Policy | Modern Slavery Policy

    Automatically translate to your language

    Terms and Conditions | Privacy Policy
    EITCA Academy
    • EITCA Academy on social media
    EITCA Academy


    © 2008-2026  European IT Certification Institute
    Brussels, Belgium, European Union

    TOP
    CHAT WITH SUPPORT
    Do you have any questions?
    We will reply here and by email. Your conversation is tracked with a support token.