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)

  • AbidanYre@lemmy.world
    link
    fedilink
    English
    arrow-up
    32
    ·
    5 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.

  • ____@infosec.pub
    link
    fedilink
    arrow-up
    30
    ·
    5 months ago

    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.

    • Wildebeest@lemmy.mlOP
      link
      fedilink
      arrow-up
      11
      ·
      5 months ago

      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)

      • SpinachSaxophone@lemmy.world
        link
        fedilink
        English
        arrow-up
        18
        arrow-down
        1
        ·
        5 months ago

        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.

        • baru@lemmy.world
          link
          fedilink
          arrow-up
          13
          arrow-down
          1
          ·
          5 months ago

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

          • Trainguyrom@reddthat.com
            link
            fedilink
            English
            arrow-up
            9
            ·
            5 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

        • kevincox@lemmy.ml
          link
          fedilink
          arrow-up
          10
          ·
          5 months ago

          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.

          • Wildebeest@lemmy.mlOP
            link
            fedilink
            arrow-up
            1
            ·
            edit-2
            5 months ago

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

  • bangupjobasusual@sh.itjust.works
    link
    fedilink
    arrow-up
    29
    ·
    5 months ago

    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?

    • Wildebeest@lemmy.mlOP
      link
      fedilink
      arrow-up
      6
      ·
      5 months ago

      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.

      • SavvyWolf@pawb.social
        link
        fedilink
        English
        arrow-up
        9
        ·
        5 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?

        • Wildebeest@lemmy.mlOP
          link
          fedilink
          arrow-up
          4
          arrow-down
          3
          ·
          5 months ago

          The only setting I can find in my settings panel is automatic detection of my timezone, but that is turned off. Also, I have checked the time in my BIOS, and It’s only off by one hour.

          Seems that this is not a common problem, I will probably go with @Strit’s advice and just hope that a reinstall will take care of things (Also, “maybe something on your network is sending incorrect time information” worries me in the same way as @Strit’s comment 😅️)

    • Wildebeest@lemmy.mlOP
      link
      fedilink
      arrow-up
      10
      arrow-down
      1
      ·
      edit-2
      5 months ago

      I was going to reinstall soon anyways, because I wanted to use full disk encryption. If the whole asking-to-change-password thing is just a random bug or a malicious activity, the reinstall would take care of that. But if it is a design choice or a common issue with either debian or GNOME (that can not easily be fixed), I might reconsider my choice of distro and desktop-environment, before doing the reinstall. I will wait a bit to see if anyone can identify the issue

      • acockworkorange@mander.xyz
        link
        fedilink
        arrow-up
        6
        arrow-down
        1
        ·
        5 months ago

        It looks like a bug in the malware, to be honest. I’d backup sensitive data and scrub the disk, while booting from a GParted live USB.

      • lemmyvore@feddit.nl
        link
        fedilink
        English
        arrow-up
        3
        ·
        5 months ago

        You may want to fully test your RAM with memtest while you’re at it. Especially if you’re going to be using encryption.

  • SavvyWolf@pawb.social
    link
    fedilink
    English
    arrow-up
    26
    ·
    5 months ago

    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.

    • RustyNova@lemmy.world
      link
      fedilink
      arrow-up
      7
      ·
      5 months ago

      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

      • Lichtblitz@discuss.tchncs.de
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        5 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.

    • Wildebeest@lemmy.mlOP
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      5 months ago

      I only remember this happening after locking my screen and later trying to unlock the screen again.

      EDIT: I am not sure about how old the system is, but I would say definitely not older than 6 months.

  • PhineaZ@feddit.de
    link
    fedilink
    arrow-up
    10
    ·
    5 months ago

    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.

    • Wildebeest@lemmy.mlOP
      link
      fedilink
      arrow-up
      2
      ·
      5 months ago

      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.

      • bl_r@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        4
        ·
        5 months ago

        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.

        • Trainguyrom@reddthat.com
          link
          fedilink
          English
          arrow-up
          5
          ·
          5 months ago

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

      • PhineaZ@feddit.de
        link
        fedilink
        arrow-up
        1
        ·
        5 months ago

        Neither can I, but it might be a combination of several issues. Like I said, if the cell is older (and you can reach it easily) just swap it, should be a 2032 (aka THE button cell). If it works, perfect, if it doesn’t no harm was done.

  • Possibly linux@lemmy.zip
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    edit-2
    5 months ago

    This sounds like a corrupt system. Run a RAM check and do a fresh install.

    Please also post a link to your logs especially dmesg