Skip to content
Programmingoneonone
Programmingoneonone
  • Engineering Subjects
    • Internet of Things (IoT)
    • Digital Communication
    • Human Values
  • Programming Tutorials
    • C Programming
    • Data structures and Algorithms
    • 100+ Java Programs
    • 100+ C Programs
    • 100+ C++ Programs
  • Solutions
    • HackerRank
      • Algorithms Solutions
      • C solutions
      • C++ solutions
      • Java solutions
      • Python solutions
      • Data Structures Solutions
    • Leetcode Solutions
    • HackerEarth Solutions
  • Work with US
Programmingoneonone
Programmingoneonone

Changing Password in Linux

YASH PAL, 3 June 202328 May 2024

Changing Password with passwd Command in Linux – If someone else assigned you a password, it is a good idea to give yourself a new one. For security reasons none of the passwords you enter is displayed by any utility. To change your password, type the command passwd at a shell. The first item passwd asks for is your current (old) password. This password is verified to ensure that an unauthorized user is not trying to change your password. After that, the system requests a new password.

changing password in linux
changing password in linux

When you enter your new password, after that the system asks you to retype the password to make sure you did not make a mistake when you entered it the first time. If the password you type is the same both times you enter, your password is changed. It differs, it means that you made an error in one of them and the system displays the error message.

changing password in linux using command
changing password in linux using command

Passwords should be at least 6 characters long, contain both letters and digits or punctuation and must not be based on a dictionary-based. When it is too simple the system displays this message.

Bad New password is too simple

There is usually a graphical utility for changing passwords, accessible from the application menu (this is desktop specific)

Computer Science Tutorials Linux Tutorials computer scienceLinux

Post navigation

Previous post
Next post

Programmingoneonone

We at Programmingoneonone, also known as Programming101 is a learning hub of programming and other related stuff. We provide free learning tutorials/articles related to programming and other technical stuff to people who are eager to learn about it.

Pages

  • About US
  • Contact US
  • Privacy Policy

Practice

  • Java
  • C++
  • C

Follow US

  • YouTube
  • LinkedIn
  • Facebook
  • Pinterest
  • Instagram
©2026 Programmingoneonone | WordPress Theme by SuperbThemes