SOLVED Warning when adding new account

Elizabeta

Well-Known Member
Mar 21, 2018
264
36
28
Mostar
cPanel Access Level
Root Administrator
Hello,

I have a cPanel &WHM version 78.0.20 .
I've started receiving the following warning when creating new cPanel accounts. They seem to function normally but I'm concerned it's something important but I can't figure out what.


Copying readonly directory (/etc/skel/.mozilla); mode of its contents may not be preserved. at /usr/local/cpanel/Cpanel/SysAccounts.pm line 444.
at /usr/local/cpanel/3rdparty/perl/528/lib/perl5/cpanel_lib/File/Copy/Recursive.pm line 280.
File::Copy::Recursive::__ANON__(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, undef) called at /usr/local/cpanel/3rdparty/perl/528/lib/perl5/cpanel_lib/File/Copy/Recursive.pm line 321
File::Copy::Recursive::dircopy("/etc/skel/*", "/home/posuda") called at /usr/local/cpanel/Cpanel/SysAccounts.pm line 444
Cpanel::SysAccounts::_install_skel_dir(1046, 1048, "/home/posuda") called at /usr/local/cpanel/Cpanel/SysAccounts.pm line 201
Cpanel::SysAccounts::add_system_user(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__..., __CPANEL_HIDDEN__, 1046, __CPANEL_HIDDEN__, 1048, __CPANEL_HIDDEN__, ...) called at /usr/local/cpanel/Whostmgr/Accounts/Create.pm line 1377
Whostmgr::Accounts::Create::__ANON__() called at /usr/local/cpanel/3rdparty/perl/528/lib/perl5/cpanel_lib/Try/Tiny.pm line 97
eval {...} called at /usr/local/cpanel/3rdparty/perl/528/lib/perl5/cpanel_lib/Try/Tiny.pm line 88
Try::Tiny::try(CODE(0x542d4d8), Try::Tiny::Catch=REF(0x5478428)) called at /usr/local/cpanel/Whostmgr/Accounts/Create.pm line 1382
Whostmgr::Accounts::Create::_create_system_user(HASH(0x48ad9c8)) called at /usr/local/cpanel/Whostmgr/Accounts/Create.pm line 378
eval {...} called at /usr/local/cpanel/Whostmgr/Accounts/Create.pm line 378
Whostmgr::Accounts::Create::_wwwacct("maxpark", 4, "homedir", "", "gid", "", "forcedns", 1, ...) called at /usr/local/cpanel/Whostmgr/Accounts/Create.pm line 2916
Whostmgr::Accounts::Create::__createaccount("forcedns", 1, "customip", "--Auto Assign--", "maxaddon", 3, "maxpark", 4, ...) called at /usr/local/cpanel/Whostmgr/Accounts/Create.pm line 2967
Whostmgr::Accounts::Create::_createaccount("forcedns", 1, "customip", "--Auto Assign--", "maxaddon", 3, "maxpark", 4, ...) called at whostmgr/bin/whostmgr5.pl line 730
main::wwwacct("wwwacct") called at /usr/local/cpanel/Whostmgr/Dispatch.pm line 259
Whostmgr::Dispatch::_do_call("wwwacct", HASH(0x45dd0a8), HASH(0x45dda98)) called at /usr/local/cpanel/Whostmgr/Dispatch.pm line 157
Whostmgr::Dispatch::dispatch("wwwacct", 1, ARRAY(0x45d1d50), HASH(0x45dda98)) called at whostmgr/bin/whostmgr5.pl line 264

Best regards,
Elizabeta
 
  • Like
Reactions: Rodrigo Gomes

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
Hi @Elizabeta

That directory isn't a standard directory and the issue is that it's read-only. If it's not a directory that is in use you may want to look at removing it otherwise you need to resolve the permissions issue with it to rectify this message.

What is the output of the following:

Code:
lsattr /etc/skel/
 
  • Like
Reactions: Rodrigo Gomes

Elizabeta

Well-Known Member
Mar 21, 2018
264
36
28
Mostar
cPanel Access Level
Root Administrator
Hello Lauren,

Thank you for your mail.
I have opened a ticket. Your collegue advised me:

"
The /etc/skel directory on your server contains the .mozilla directory which is not recommended:


---


ls -la /etc/skel/


total 28


drwxr-xr-x. 3 root root 78 Nov 1 14:31 .


drwxr-xr-x. 158 root root 12288 Apr 15 19:40 ..


-rw-r--r-- 1 root root 18 May 22 2018 .bash_logout


-rw-r--r-- 1 root root 193 May 22 2018 .bash_profile


-rw-r--r-- 1 root root 231 May 22 2018 .bashrc


drwxr-xr-x. 4 root root 39 Mar 16 2018 .mozilla


---





The warning comes from having the .mozilla directory with read-only permissions within the /etc/skel directory (The group is Read/Execute denoted by r-x).





To remove the warning you can configure the .mozilla directory within /etc/skel to be world writable (777) or remove the .mozilla directory which is only there because at some point a graphical environment was run on the server, however, this is not needed."

So, I have just removed .mozilla directory and now there is no any warning when i add a new user.

Thank you!

Best regards,
Elizabeta
 
  • Like
Reactions: Rodrigo Gomes

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
Hi @Elizabeta


I have opened a ticket. Your collegue advised me:

"
The /etc/skel directory on your server contains the .mozilla directory which is not recommended:
Which looks to be basically what I had recommended previously:

That directory isn't a standard directory and the issue is that it's read-only. If it's not a directory that is in use you may want to look at removing it otherwise you need to resolve the permissions issue with it to rectify this message.
I'm glad you got a confirmation that this was the correct course of action and I'm glad to hear that issue is now resolved!