Linux
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
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
Agreed. I just finished reinstalling the operating system 👍
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.
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.
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)
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.
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.
Removing batteries, right, this is still possible with laptops. Thanks, I didn't think of that.
The clock likely is off by an hour because of local time vs UTC difference. Where the BIOS is set to UTC.
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
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?
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.
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?
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.
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
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.
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.
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.
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.
I was thinking potentially if the system thinks the password was set 200 years in the future it would also be invalid
I've never had a linux setup demand that I change my password. Is this a feature of gnome?
A corrupted password policy might do this
Gnome is a desktop environment
Which can include programs which do this.