this post was submitted on 05 Mar 2024
4 points (100.0% liked)

Linux

47237 readers
3343 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I enter my password, and it tells me that I "need to change my password immediately". It won't let me use my account, unless I type in a new password or enter the old password 10 times or so.

After repeatedly entering the old password, it will eventually unlock my screen. However, the system date increases by a few hundred years and wifi stops working. Everything turns back to normal after rebooting.

This hasn't happened for a while now, but it used to happen every few weeks. I find it really strange, both the system date and wifi bug, and the fact that I am demanded to change my password.

Did this happen to anyone else, and does anyone know what and who might have caused this? I am curious.

(The distro is debian 12 and the lock-screen/desktop-environment is GNOME 43.6)

top 25 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 6 months ago (1 children)
[–] [email protected] 3 points 6 months ago* (last edited 6 months ago)

Agreed. I just finished reinstalling the operating system 👍

[–] [email protected] 3 points 6 months ago

It seems like everyone else has beaten the clock thing to death, but I just want to throw in my two cents. I have worked on NTP in the past and anytime there was a bug that set the time wrong, all hell broke loose with general usability of the client system.

If you're using Debian and haven't like, intentionally installed a bunch of shady stuff, malware is pretty unlikely.

Double check how/where your time is being set. Try turning off any automatic adjustments and see what happens for a little while.

[–] [email protected] 2 points 6 months ago (1 children)

If the clock is off (bad CMOS battery, as others have noted); and there is a password "max age" setting that's intended to be far, far, far in the future...

Well, your clock being off by a few hundred years might well trigger the (intended never) expiration setting.

Malware is a possibility, but I lean towards the date being the cause rather than an effect.

[–] [email protected] 1 points 6 months ago (1 children)

I did go into the BIOS earlier and it showed the correct time (just one hour off). Is this the clock that you are talking about or is there another clock that I should check? (sorry I don't really know much about this stuff)

[–] [email protected] 1 points 6 months ago (2 children)

When you power the system down, unplug it from the wall for ~10 minutes, plug it back in, then power it back up, is the BIOS clock off by an hour again? If so, I’d follow the recommendation to replace the CMOS battery. If you look your motherboard up online, you should be able to find the location on the board and type of battery. It isn’t a complicated task, but it can seem difficult if you’ve never done it before.

[–] [email protected] 2 points 6 months ago (1 children)

Also hold down the power button for a few seconds after unplugging just to help drain out any residual power from capacitors.

Also if it is a laptop or other battery-operated device you will want to disconnect the batter temporarily.

[–] [email protected] 1 points 6 months ago* (last edited 6 months ago)

Removing batteries, right, this is still possible with laptops. Thanks, I didn't think of that.

[–] [email protected] 1 points 6 months ago (1 children)

The clock likely is off by an hour because of local time vs UTC difference. Where the BIOS is set to UTC.

[–] [email protected] 2 points 6 months ago

Linux generally stores the time in BIOS as UTC then adjusts to the local timezone on the fly. Windows just stores it as the local timezone, which can create interesting behavior when dualbooting sometimes

[–] [email protected] 1 points 6 months ago (1 children)

It seems plausible that a bad date is expiring your password depending on your policy and configuration. Are you getting time from ntp? If so what server, and what is it saying? What does your bios show for time?

[–] [email protected] 0 points 6 months ago (1 children)

I am not familiar with ntp, I didn't really change any date/time related settings or install any additional software. Also I suspect the BIOS to not be affected, since the date will be normal again after rebooting.

[–] [email protected] 1 points 6 months ago

On my system it is called "Network Time", but it might be called "Get current time from the internet" or something on other distros. Might be worth turning it off to see if it fixes things - maybe something on your network is sending incorrect time information?

[–] [email protected] 1 points 6 months ago (1 children)

Does this happen immediately after booting? How old is the system?

I'm wondering if the clock circuitry in the motherboard might be busted or have low battery.

[–] [email protected] 0 points 6 months ago (1 children)

Not sure if it's clock related. I had a Debian 12 on a server that had a empty CMOS battery, and it didn't do anything like that

[–] [email protected] 1 points 6 months ago* (last edited 6 months ago)

It depends. Some hardware degrades gracefully while my current desktop system won't even boot and throws error codes on an empty battery. It took me hours to figure out what was wrong the first time it happened.

[–] [email protected] 1 points 6 months ago
[–] [email protected] 0 points 6 months ago (1 children)

Certainly not a computer expert, but consider the option that the battery on your motherboard might be running low. If the hardware itself is older, I would try swapping the button cell. I've seen many weird issues get resolved this way, although in theory it should not mess up anything but system time.

[–] [email protected] 0 points 6 months ago (1 children)

although in theory it should not mess up anything but system time.

Yes, I can't see why this would explain my computer suddenly demanding that I must change my password, which is what I am most interested to know the reason for.

[–] [email protected] 1 points 6 months ago (1 children)

Linux passwords can be set to expire. A non-expiring password is sometimes just set to expire so far in the future that it will not be reached by the user (such as 100 or 200 years). A really broken clock could surpass that and cause expiry.

[–] [email protected] 1 points 6 months ago

I was thinking potentially if the system thinks the password was set 200 years in the future it would also be invalid

[–] [email protected] 0 points 6 months ago (2 children)

I've never had a linux setup demand that I change my password. Is this a feature of gnome?

[–] [email protected] 1 points 6 months ago

A corrupted password policy might do this

[–] [email protected] 0 points 6 months ago (1 children)

Gnome is a desktop environment

[–] [email protected] 1 points 6 months ago

Which can include programs which do this.