I'm on Ubuntu 15.04 and today I've been reading an article about Linux security from this link.
Everything went good until the part of UID 0 Account
Only root should have the UID 0. Another account with that UID is often synonymous to backdoor.
When running the command they gave me, I found out there were another root account. Just after that I disabled the account as the article do but I'm sort of afraid of this account, I can find him on /etc/passwd
rootk:x:0:500::/:/bin/false
And in /etc/shadow
rootk:!$6$loVamV9N$TorjQ2i4UATqZs0WUneMGRCDFGgrRA8OoJqoO3CCLzbeQm5eLx.VaJHeVXUgAV7E5hgvDTM4BAe7XonW6xmup1:16795:0:99999:7::1:
I tried to delete this account using userdel rootk
but got this error ;
userdel: user rootk is currently used by process 1
The process 1 is systemd. Could anyone give me some advice please ? Should I userdel -f
? Is this account a normal root account ?
/etc/passwd
. I also doubt that removing that account could have any impact on the machine since files and processes refer to the UID and not the username. It would be advisable (although most likely not required) to have a recovery disk handy but I would remove it and restart the machine without any worry./etc/passwd
&/etc/shadow
; rebooted and everything is good now, root is being the only one shown as root user Thank you for your help !rootk
is too suspicious name, and having a non-disabled password is worse a symptom of having been defeated by a trojan horse. By the way, don't remove the entry, just insert some letter at the password field to disable it, as it will give you clues to know how did you get infected.rootk
account with a supposed valid password (not disabled) is a strong symptom of some network exploit or misuse of the root account by the local user. As we use to say: "Do trust the Holy Virgin, and don't run...". By the way, do you think I'm a sixteen years old guy with no experience in unix/linux? :(/bin/false
is the genuine file by runningsudo dpkg -V coreutils
. If it's been altered, please consider reinstalling everything. Ubuntu 15.04 has been EOL for 6 months, so any existing and future security holes aren't going to be fixed, so you may want to install a newer version such as 16.04.