ERROR: Entry for r00t missing in /etc/shadow
Hello everyone,
I get the following error whatever we do in WHM.
Even in cpanel accounts. The following error is showing at the top of it.
I have tried to upgrade WHM but after 100% is totally crushing.
I tried to run the passwd named command. Still same error.
Even tried to upgrade WHM with /scripts/upcp --force, but still same error.
Looks like I cant get rid of it.
Anyone can suggest me what I can I do to solve it?
Thank you in advance!
The annoying ERROR:
Entry for r00t missing in /etc/shadow at /usr/local/cpanel/Cpanel/PwCache/Helpers.pm line 30.
Cpanel::PwCache::Helpers::cluck("Entry for r00t missing in /etc/shadow") called at /usr/local/ eval {...} called at /usr/local/cpanel/whostmgr/docroot/templates/_gentweakpage.tmpl line 1
eval {...} called at /usr/local/cpanel/whostmgr/docroot/templates/_gentweakpage.tmpl line 2
eval {...} called at /usr/local/cpanel/whostmgr/docroot/templates/_gentweakpage.tmpl line 5
eval {...} called at /usr/local/cpanel/whostmgr/docroot/templates/_gentweakpage.tmpl line 4
eval {...} called at /usr/local/cpanel/whostmgr/docroot/templates/_gentweakpage.tmpl line 16
Template::Provider::__ANON__(Template::Context=HASH(0x665a130)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 163
eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 161
Template::Document::process(Template::Document=HASH(0x686bf20), Template::Context=HASH(0x665a130)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 351
eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 321
Template::Context::process(Template::Context=HASH(0x665a130), "_gentweakpage.tmpl", HASH(0x67a5f88)) called at /usr/local/cpanel/whostmgr/docroot/templates/editsets.tmpl line 43
eval {...} called at /usr/local/cpanel/whostmgr/docroot/templates/editsets.tmpl line 16
Template::Provider::__ANON__(Template::Context=HASH(0x665a130)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 163
eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 161
Template::Document::process(Template::Document=HASH(0x6665810), Template::Context=HASH(0x665a130)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 351
eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 321
Template::Context::process(Template::Context=HASH(0x665a130), Template::Document=HASH(0x6665810)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Service.pm line 94
eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Service.pm line 91
Template::Service::process(Template::Service=HASH(0x665ab80), "editsets.tmpl", HASH(0x6659118)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template.pm line 66
Template::process(Template=HASH(0x665c750), "editsets.tmpl", HASH(0x6659118)) called at /usr/local/cpanel/Cpanel/Template.pm line 445
Cpanel::Template::process_template("whostmgr", HASH(0x6659118)) called at whostmgr/bin/whostmgr.pl line 2094
main::editsets() called at whostmgr/bin/whostmgr.pl line 475
at /usr/local/cpanel/Cpanel/PwCache/Helpers.pm line 30.
Cpanel::PwCache::Helpers::cluck("Entry for r00t missing in /etc/shadow") called at /usr/local/cpanel/Cpanel/PwCache.pm line 172
Cpanel::PwCache::_readshadow(0, 2, 1490947938, 1491390063) called at /usr/local/cpanel/Cpanel/PwCache.pm line 139
Cpanel::PwCache::_getpwdata(0, 2, 1490947938, 1491390063) called at /usr/local/cpanel/Cpanel/PwCache.pm line 116
Cpanel::PwCache::_pwfunc(0, 2) called at /usr/local/cpanel/Cpanel/PwCache.pm line 53
Cpanel::PwCache::getpwuid(0) called at /usr/local/cpanel/Cpanel/PwCache.pm line 227
Cpanel::PwCache::gethomedir() called at /usr/local/cpanel/Cpanel/CachedCommand/Utils.pm line 53
Cpanel::CachedCommand::Utils::_get_datastore_dir() called at /usr/local/cpanel/Cpanel/CachedCommand/Utils.pm line 32
Cpanel::CachedCommand::Utils::_get_datastore_filename("all_iplist.db") called at /usr/local/cpanel/Cpanel/IP/Configured.pm line 41
Cpanel::IP::Configured::getconfiguredips() called at /usr/local/cpanel/Cpanel/Ips/Fetch.pm line 16
Cpanel::Ips::Fetch::fetchipslist() called at /usr/local/cpanel/Whostmgr/TweakSettings/Basic.pm line 56
Whostmgr::TweakSettings::Basic::__ANON__(__CPANEL_HIDDEN__) called at /usr/local/cpanel/whostmgr/docroot/templates/_gentweakpage.tmpl line 1
eval {...} called at /usr/local/cpanel/whostmgr/docroot/templates/_gentweakpage.tmpl line 1
eval {...} called at /usr/local/cpanel/whostmgr/docroot/templates/_gentweakpage.tmpl line 2
eval {...} called at /usr/local/cpanel/whostmgr/docroot/templates/_gentweakpage.tmpl line 5
eval {...} called at /usr/local/cpanel/whostmgr/docroot/templates/_gentweakpage.tmpl line 4
eval {...} called at /usr/local/cpanel/whostmgr/docroot/templates/_gentweakpage.tmpl line 16
Template::Provider::__ANON__(Template::Context=HASH(0x665a130)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 163
eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 161
Template::Document::process(Template::Document=HASH(0x686bf20), Template::Context=HASH(0x665a130)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 351
eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 321
Template::Context::process(Template::Context=HASH(0x665a130), "_gentweakpage.tmpl", HASH(0x67a5f88)) called at /usr/local/cpanel/whostmgr/docroot/templates/editsets.tmpl line 43
eval {...} called at /usr/local/cpanel/whostmgr/docroot/templates/editsets.tmpl line 16
Template::Provider::__ANON__(Template::Context=HASH(0x665a130)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 163
eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 161
Template::Document::process(Template::Document=HASH(0x6665810), Template::Context=HASH(0x665a130)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 351
eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 321
Template::Context::process(Template::Context=HASH(0x665a130), Template::Document=HASH(0x6665810)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Service.pm line 94
eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Service.pm line 91
Template::Service::process(Template::Service=HASH(0x665ab80), "editsets.tmpl", HASH(0x6659118)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template.pm line 66
Template::process(Template=HASH(0x665c750), "editsets.tmpl", HASH(0x6659118)) called at /usr/local/cpanel/Cpanel/Template.pm line 445
Cpanel::Template::process_template("whostmgr", HASH(0x6659118)) called at whostmgr/bin/whostmgr.pl line 2094
main::editsets() called at whostmgr/bin/whostmgr.pl line 475
-
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 -
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 -
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 -
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.
Comments
4 comments