Skip to main content

ERROR: Entry for r00t missing in /etc/shadow

Comments

4 comments

  • Mark Shaw
    Hello, In order to fix this you will need to ssh into the server as root, its an error that occurs when users don't end up in all the groups they should start by running the following: passwd named Then you should verify that /etc/shadow has all of the permissions and users and matching user ids from /etc/passwd. Once you complete this you will probably find that something is incorrect there. Please let me know and I'm sure we can figure it out. Regards, Mark S.
    0
  • sandroo.m
    hello Mark, thank you for your reply. I have already tried that. The result was terrible. All user folders lost their ownership. The users changes to some IDs instead. Something weird is going on. I am restoring WHM from a backup now. Thanks, Sandro M.
    0
  • 24x7server
    Hi, Create an entry in the shadow file if it is missing. You should be able to edit it as root. However, this can be done only when you have a root access of your server, but since the shadow file is the place where the password is stored, I think it may or may not work, but you have to try this first. Other thing if you are not able to do this, put your server into single user mode and then do this..
    0
  • cPanelMichael
    I am restoring WHM from a backup now.

    Hello, Let us know if this helps. Note that if you still have access to the /root/.bash_history file, you could review it to see if any commands were ran that could have lead to the issue. Thank you.
    0

Please sign in to leave a comment.