Skip to content
Programming101
Programming101

Learn everything about programming

  • Home
  • CS Subjects
    • IoT – Internet of Things
    • Digital Communication
    • Human Values
  • Programming Tutorials
    • C Programming
    • Data structures and Algorithms
    • 100+ Java Programs
    • 100+ C Programs
  • HackerRank Solutions
    • HackerRank Algorithms Solutions
    • HackerRank C problems solutions
    • HackerRank C++ problems solutions
    • HackerRank Java problems solutions
    • HackerRank Python problems solutions
Programming101
Programming101

Learn everything about programming

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 computer scienceLinux

Post navigation

Previous post
Next post
  • HackerRank Separate the Numbers solution
  • How AI Is Revolutionizing Personalized Learning in Schools
  • GTA 5 is the Game of the Year for 2024 and 2025
  • Hackerrank Day 5 loops 30 days of code solution
  • Hackerrank Day 6 Lets Review 30 days of code solution
How to download udemy paid courses for free

Pages

  • About US
  • Contact US
  • Privacy Policy

Programing Practice

  • C Programs
  • java Programs

HackerRank Solutions

  • C
  • C++
  • Java
  • Python
  • Algorithm

Other

  • Leetcode Solutions
  • Interview Preparation

Programming Tutorials

  • DSA
  • C

CS Subjects

  • Digital Communication
  • Human Values
  • Internet Of Things
©2025 Programming101 | WordPress Theme by SuperbThemes