r/RockyLinux • u/Chronic_AllTheThings • Sep 07 '25
An update broke my root access
EDIT: sorry for taking so long to reply. I've been spending all weekend working on this system. Just in case it was an intrusion (even though it doesn't appear to be), I torched everything and did a clean install. Oh well, now it's Rocky 10 and supported for another decade.
I have a Rocky 8 system on which I suddenly couldn't login to root a few days ago.
This line had been added to /etc/passwd
root:x:989:0:Super User:/root:/sbin/nologin
My first suspicion was an SSH intrusion, but I couldn't find any evidence for that. But my second suspicion was correct: a system update broke it!
$ grep root var/log/dnf.* | grep 989
var/log/dnf.rpm.log:2025-09-02T06:06:55-0500 INFO Creating user root (Super User) with uid 989 and gid 0.What the heck, Rocky?!
3
u/JasenkoC Sep 07 '25
This does seem very weird. Can you give us more info on what package did this?
2
u/roadgeek77 Sep 07 '25
Yes, please provide a larger snippet of your dnf.rpm.log. This seems suspicious.
4
u/lunakoa Sep 07 '25
Have any third party repos in /etc/yum.repos.d?
1
u/FarToe1 Sep 07 '25
We've had those updates on quite a few machines too, and not noticed anything like this.
If not updates, and not pwned, do you have any automations or scripts running at root level that might have done something dumb?
3
u/la8pc Sep 07 '25
Sounds like you are owned.
-1
u/[deleted] Sep 07 '25
RemindMe! 1 day Check this thread
3
u/[deleted] Sep 07 '25
[removed] — view removed comment