• Start Here
    • How to Install Linux
    • Which Distro To Choose
    • 10 Best Linux Distributions of 2023
  • Distros
    • Ubuntu
  • Linux Commands
  • Virtualization
  • Open Source
Linux Start
  • Start Here
    • How to Install Linux
    • Which Distro To Choose
    • 10 Best Linux Distributions of 2023
  • Distros
    • Ubuntu
  • Linux Commands
  • Virtualization
  • Open Source
Linux Start
Home»Distros»Ubuntu»How To Change Password In Ubuntu

How To Change Password In Ubuntu

Anup ThapaBy Anup ThapaFebruary 24, 2023 Ubuntu 2 Mins Read

Ubuntu systems are secure compared to other platforms like Windows, but a system’s security is ultimately dependent on the user, starting with fundamentals like the user’s password. 

If you’re still using an easy-to-guess password, it’s high time you changed it to something secure. Ubuntu lets you do this easily using tools like passwd or from User Settings. Do note that you’ll need admin privileges to change the password of other users.

Change User Password with passwd

The passwd command is used to perform password-related actions like changing the password or its validity period. 

To change the current user’s password, you can simply use passwd like so

passwd

You can change another user’s password by specifying their username and using sudo.

sudo passwd anup

The expire option is useful when you want to let the user set the password at their next login.

sudo passwd -e anup

Change via User Settings

You can also change your password from the Settings app if you prefer sticking to the GUI.

  1. Search and open ‘Users’ from the Activities overview.
    user settings ubuntu
  2. To change the current user’s password, click on Password from the Authentication & Login section.
    ubuntu authentication login password
  3. Enter the current password, set the new one, and click on Change.
    change password on ubuntu
  4. To change another user’s password, click on Unlock first. You’ll need to enter a sudo user account’s password for authentication.
    unlock user settings ubuntu
  5. Now, you can change the password of other users as done in Steps 2-3. You can also let the user change the password on the next login if you want.
    allow user to change password on next login
Anup Thapa
  • LinkedIn

Anup Thapa is a Linux enthusiast with an extensive background in computer hardware and networking. At LinuxStart, Anup is an integral part of our editorial team. His goal is to effectively communicate technical concepts in a simplified form understandable by new Linux users. To this end, he mainly writes beginner-friendly tutorials and troubleshooting guides. Outside of work, he enjoys experimenting with different Linux distros and reading up on things like networking and virtualization.

Leave A Reply Cancel Reply

Table of Contents
  • Change User Password with passwd
  • Change via User Settings
Linux Start
Guides

What is the Linux Kernel?

The Linux Kernel is the core of the Linux operating system and is central to…

How To Install Linux Mint

How To Install Linux on VirtualBox

Getting Started with Linux

How to Install Linux

10 Best Linux Distros of 2023

Which Linux Distro Should You Choose? A Complete Guide to Help You Decide

© 2023 LinuxStart.com

Type above and press Enter to search. Press Esc to cancel.