login password length

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
benj13
Posts: 2
Joined: 18. Nov 2025, 21:11

login password length

Post by benj13 »

Hi,

As a new user of Salix OS, I am encountering a minor issue. When I attempt to set up a password for my user account, I am required to use a password with a minimum of 6 characters... Is it possible to set a shorter password?

Thank you in advance.
User avatar
gapan
Salix Wizard
Posts: 6404
Joined: 6. Jun 2009, 17:40

Re: login password length

Post by gapan »

You really shouldn't. Shorter passwords are so easy to crack these days.

But if you really want to, you can use chpasswd to do it.

Code: Select all

echo "yourusername:yournewpassword" | sudo chpasswd
you'll get the BAD PASSWORD message, but it will be applied anyway.
Image
Image
benj13
Posts: 2
Joined: 18. Nov 2025, 21:11

Re: login password length

Post by benj13 »

Thank you for the tip Gapan ;)
Post Reply