this post was submitted on 01 Jul 2025
2 points (100.0% liked)

Ubuntu Linux

1947 readers
7 users here now

Linux for Human Beings.

Ubuntu is a popular Linux operating system for PC / mobile devices, etc.

Developed by Canonical & based on Debian (another older Linux OS) which is known for it's rock solid stability.

Ubuntu is trusted everywhere computing by professionals and common users alike.

https://ubuntu.com/

founded 5 years ago
MODERATORS
 

Please don't lecture me how this is not a good idea. The system is non critical with zero important data, I just need least effort to input and confirm password.

During install, Ubuntu 25.04 allowed me to type in 1 character long password, but I picked the wrong key that's not as convenient as I thought.

I've tried changing password and GUI won't allow me to do it and passwd complains about length and still makes it look like it changes it, but doesn't really. So, how can I bloody do it without reinstalling the whole damn OS again because only installer isn't complaining about it?

Thanks

top 5 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 13 hours ago (1 children)

Did you try passwd? sudo passwd (username) it said my password was bad, but it didn't stop me.

[–] [email protected] 2 points 13 hours ago (1 children)

I've mentioned I have already tried passwd. It complains over the length, in the end claims it was changed, but when I try authenticate something it says my new password isn't correct and old one is still the active one. I don't get it why installer can override it without any complaining, but anything after it's impossible to do it, even through Terminal.

[–] [email protected] 1 points 9 hours ago

I gotta be honest, I think that's a genuine bug. If passwd says it was changed, it should be changed. I tested on my 24.04 system and it worked correctly, I don't have any 25.04 systems to test.

You rebooted after changing it just in case right?

[–] [email protected] 2 points 14 hours ago

You could try sudo passwd username. If you're using it as a remote system via ssh, I'd strongly recommend to use key-based with instead. It's both easier and more secure.

[–] [email protected] 1 points 14 hours ago* (last edited 13 hours ago)

~~I've never tried to set a password that short, but I would start with passwd on the command line.~~

Looks like an update to minlen in /etc/security/pwquality.conf may solve it.

I would also look into Auto Login, as well.

Edit: And if it's a remote system, I would definitely set up a password-less SSH key, instead, of course.