WHM accelerated new accounts wrong disk usage and userid

karlos

Member
Oct 1, 2003
17
0
151
Hello,

since the last WHM update I have problems with the new accounts, but only the three new firts accounts.

The error is that WHM assigns a wrong UID because it is already used by some cpanel files.

The Cpanel support says that the low UID it's a recent change by design :-? but in my cpanel installation the new usernames get an UID of 500 or 501 or 502 and it affects the disk usage and what makes me worry is what happen if I delete these accounts?


For example, If I'll create 3 new accounts the files below will be owned by the new username/groupname


Code:
[email protected] [~]# find /scripts/ -gid 502 -ls
44007733    4 -rwxr-xr-x   1 root     502	    515 May 11	2001
/scripts/newdomains
44007627    8 -rwxr-xr-x   1 root     502	   5412 Aug 25	2003
/scripts/fpanonuserpatch
44007613    4 -rwxr-xr-x   1 root     502	   3553 Oct 19	2002
/scripts/fixndc.new
44007762   16 -rwxr-xr-x   1 root     502	  16093 Aug 27	2005
/scripts/pkgacct2
44007666    4 -rwxr-xr-x   1 root     502	    222 May 11	2001
/scripts/icpanel
44007725    4 -rwxr-xr-x   1 root     502	    195 May 11	2001
/scripts/newdomains-sendmail
[email protected] [~]#

[email protected] [~]# find /home/ -uid 500 -ls | head -n3
40010127    4 drwxr-xr-x  12 500      mailtrap	   4096 Mar 29	2006
/home/installd/buildapache/expat-1.95.6
40010206    4 drwxr-xr-x   2 500      mailtrap	   4096 Jan 28	2003
/home/installd/buildapache/expat-1.95.6/vms
40010208    4 -rw-r--r--   1 500      mailtrap	   1425 Jun  5	2002
/home/installd/buildapache/expat-1.95.6/vms/expat_config.h
[email protected] [~]#


[email protected] [~]# find /home/.cpan -uid 500 -ls | head -n3
40239853    4 -rw-r--r--   1 500      mailtrap	    809 Sep 12	2006
/home/.cpan/build/ExtUtils-Command-1.13-dZmN3m/Makefile.PL
40239852    4 -rw-r--r--   1 500      mailtrap	    533 Sep 12	2006
/home/.cpan/build/ExtUtils-Command-1.13-dZmN3m/Build.PL
40239850   32 -rw-r--r--   1 500      mailtrap	  28897 Dec 22	2006
/home/.cpan/build/ExtUtils-Command-1.13-dZmN3m/Changes
[email protected] [~]#


[email protected] [~]# find /home/.cpan -uid 501 -ls | head -n3
41943656    4 -rw-r--r--   1 501      501	    497 Apr  1	2008
/home/.cpan/build/Unix-PID-Tiny-0.5-bBjPOg/Makefile.PL
41943651    4 -rw-r--r--   1 501      501	    505 Apr 11	2008
/home/.cpan/build/Unix-PID-Tiny-0.5-bBjPOg/Changes
41943660    4 drwxr-xr-x   2 501      501	   4096 Apr 11	2008
/home/.cpan/build/Unix-PID-Tiny-0.5-bBjPOg/t
[email protected] [~]#

[email protected] [~]# find /home/.cpan -uid 502 -ls | head -n3
41289832    4 -rw-r--r--   1 502      502	    587 May 22	2005
/home/.cpan/build/Class-Std-Utils-v0.0.3-z2uCGt/Makefile.PL
41289826    4 -rw-r--r--   1 502      502	    503 May 22	2005
/home/.cpan/build/Class-Std-Utils-v0.0.3-z2uCGt/Build.PL
41289827    4 -rw-r--r--   1 502      502	    213 Nov 24	2007
/home/.cpan/build/Class-Std-Utils-v0.0.3-z2uCGt/Changes
[email protected] [~]#

a related post
http://forums.cpanel.net/showpost.php?p=467421&postcount=3

Thanks in advance for your help.

Karlos
 

cPanelNick

Administrator
Staff member
Mar 9, 2015
3,481
35
208
cPanel Access Level
DataCenter Provider
Hello,

since the last WHM update I have problems with the new accounts, but only the three new firts accounts.

The error is that WHM assigns a wrong UID because it is already used by some cpanel files.

The Cpanel support says that the low UID it's a recent change by design :-? but in my cpanel installation the new usernames get an UID of 500 or 501 or 502 and it affects the disk usage and what makes me worry is what happen if I delete these accounts?


For example, If I'll create 3 new accounts the files below will be owned by the new username/groupname


Code:
[email protected] [~]# find /scripts/ -gid 502 -ls
44007733    4 -rwxr-xr-x   1 root     502	    515 May 11	2001
/scripts/newdomains
44007627    8 -rwxr-xr-x   1 root     502	   5412 Aug 25	2003
/scripts/fpanonuserpatch
44007613    4 -rwxr-xr-x   1 root     502	   3553 Oct 19	2002
/scripts/fixndc.new
44007762   16 -rwxr-xr-x   1 root     502	  16093 Aug 27	2005
/scripts/pkgacct2
44007666    4 -rwxr-xr-x   1 root     502	    222 May 11	2001
/scripts/icpanel
44007725    4 -rwxr-xr-x   1 root     502	    195 May 11	2001
/scripts/newdomains-sendmail
[email protected] [~]#

[email protected] [~]# find /home/ -uid 500 -ls | head -n3
40010127    4 drwxr-xr-x  12 500      mailtrap	   4096 Mar 29	2006
/home/installd/buildapache/expat-1.95.6
40010206    4 drwxr-xr-x   2 500      mailtrap	   4096 Jan 28	2003
/home/installd/buildapache/expat-1.95.6/vms
40010208    4 -rw-r--r--   1 500      mailtrap	   1425 Jun  5	2002
/home/installd/buildapache/expat-1.95.6/vms/expat_config.h
[email protected] [~]#


[email protected] [~]# find /home/.cpan -uid 500 -ls | head -n3
40239853    4 -rw-r--r--   1 500      mailtrap	    809 Sep 12	2006
/home/.cpan/build/ExtUtils-Command-1.13-dZmN3m/Makefile.PL
40239852    4 -rw-r--r--   1 500      mailtrap	    533 Sep 12	2006
/home/.cpan/build/ExtUtils-Command-1.13-dZmN3m/Build.PL
40239850   32 -rw-r--r--   1 500      mailtrap	  28897 Dec 22	2006
/home/.cpan/build/ExtUtils-Command-1.13-dZmN3m/Changes
[email protected] [~]#


[email protected] [~]# find /home/.cpan -uid 501 -ls | head -n3
41943656    4 -rw-r--r--   1 501      501	    497 Apr  1	2008
/home/.cpan/build/Unix-PID-Tiny-0.5-bBjPOg/Makefile.PL
41943651    4 -rw-r--r--   1 501      501	    505 Apr 11	2008
/home/.cpan/build/Unix-PID-Tiny-0.5-bBjPOg/Changes
41943660    4 drwxr-xr-x   2 501      501	   4096 Apr 11	2008
/home/.cpan/build/Unix-PID-Tiny-0.5-bBjPOg/t
[email protected] [~]#

[email protected] [~]# find /home/.cpan -uid 502 -ls | head -n3
41289832    4 -rw-r--r--   1 502      502	    587 May 22	2005
/home/.cpan/build/Class-Std-Utils-v0.0.3-z2uCGt/Makefile.PL
41289826    4 -rw-r--r--   1 502      502	    503 May 22	2005
/home/.cpan/build/Class-Std-Utils-v0.0.3-z2uCGt/Build.PL
41289827    4 -rw-r--r--   1 502      502	    213 Nov 24	2007
/home/.cpan/build/Class-Std-Utils-v0.0.3-z2uCGt/Changes
[email protected] [~]#

a related post
http://forums.cpanel.net/showpost.php?p=467421&postcount=3

Thanks in advance for your help.

Karlos
You can chown /scripts to root:root.

chown -R root:root /scripts

As for /home/.cpan you can just remove it as it will be rebuilt.