Skip to content
Programmingoneonone
Programmingoneonone

Learn everything about programming

  • Home
  • CS Subjects
    • Internet of Things (IoT)
    • Digital Communication
    • Human Values
    • Cybersecurity
  • 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
Programmingoneonone
Programmingoneonone

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

Post navigation

Previous post
Next post

Are you a student and stuck with your career or worried about real-time things, and don't know how to manage your learning phase? Which profession to choose? and how to learn new things according to your goal, and land a dream job. Then this might help to you.

Hi My name is YASH PAL, founder of this Blog and a Senior Software engineer with 5+ years of Industry experience. I personally helped 40+ students to make a clear goal in their professional lives. Just book a one-on-one personal call with me for 30 minutes for 300 Rupees. Ask all your doubts and questions related to your career to set a clear roadmap for your professional life.

Book session - https://wa.me/qr/JQ2LAS7AASE2M1

Pages

  • About US
  • Contact US
  • Privacy Policy

Follow US

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