New account quota says 160MB used.

4u123

Well-Known Member
PartnerNOC
Jan 2, 2006
943
28
178
Customer signed up yesteday, logged into cpanel for the first time and his quota says he has used 160MB of his 500MB. It shows 160Mb used in WHM too.

His disk space usage tool says he has used 0.36MB. I have run a fixquotas but this hasnt fixed it.

Any ideas?
 

karlos

Member
Oct 1, 2003
17
0
151
I have the same problem in a recently WHM updated server with

cPanel 11.24.4-S33268 - WHM 11.24.2 - X 3.9 CENTOS 5.2

The problem is that the new accounts have a low user id (500, 501, ...) wich have been previously used by other process and their files. When Cpanel counts the disk usage of users, it counts all the files owned by these uids.

The previous other users accounts starts with UIDS and GIDS from 32000 and so on.

For example, when I create a new account with the user name "atestkmg" in WHM, shows 77MB of Disk Usage. When I do a search of the files owned by the new user, I found this:

Code:
[[email protected] ~]# find / -user atestkmg -ls | head
20643873    4 drwxr-xr-x   3 atestkmg atestkmg     4096 Jan 17  2007 /home/.cpan/build/Acme-Spork-v0.0.7-rUNJYc/lib
20643874    4 drwxr-xr-x   2 atestkmg atestkmg     4096 Jan 17  2007 /home/.cpan/build/Acme-Spork-v0.0.7-rUNJYc/lib/Acme
20643875    8 -rw-r--r--   1 atestkmg wheel        6351 Jan 17  2007 /home/.cpan/build/Acme-Spork-v0.0.7-rUNJYc/lib/Acme/Spork.pm
20643876    4 drwxr-xr-x   2 atestkmg atestkmg     4096 Jan 17  2007 /home/.cpan/build/Acme-Spork-v0.0.7-rUNJYc/t
20643877    4 -rw-r--r--   1 atestkmg atestkmg      471 Jan  6  2006 /home/.cpan/build/Acme-Spork-v0.0.7-rUNJYc/t/Acme-Spork.t
20643878    4 -rw-r--r--   1 atestkmg atestkmg      377 Jan  8  2006 /home/.cpan/build/Acme-Spork-v0.0.7-rUNJYc/Makefile.PL
20643879    4 -rw-r--r--   1 atestkmg atestkmg     1190 Jan 17  2007 /home/.cpan/build/Acme-Spork-v0.0.7-rUNJYc/Changes
20643880    4 -rw-r--r--   1 atestkmg atestkmg      148 Jan  8  2006 /home/.cpan/build/Acme-Spork-v0.0.7-rUNJYc/MANIFEST
20643881    4 -rw-r--r--   1 atestkmg atestkmg      380 Jan 17  2007 /home/.cpan/build/Acme-Spork-v0.0.7-rUNJYc/META.yml
20643884    4 -rw-r--r--   1 atestkmg atestkmg      589 Jan 17  2007 /home/.cpan/build/Acme-Spork-v0.0.7-rUNJYc/README

[[email protected] build]# tail -n3 /etc/passwd
acutangl:x:32116:32118::/home/acutangl:/bin/bash
saberviv:x:500:500::/home/saberviv:/bin/bash
atestkmg:x:501:501::/home/atestkmg:/bin/bash
[[email protected] build]#

[[email protected] build]# tail -n3 /etc/group
acutangl:x:32118:
saberviv:x:500:
atestkmg:x:501:
[[email protected] build]#

Can I change the UID and GID of users without breaking Cpanel??


Can I delete the folder "/home/.cpan/build/" ?


Thanks in advance for any information.

Karlos
 

greengiant

Well-Known Member
Aug 31, 2003
48
0
156
Hi,

I had this same issue and opened a bug report.
http://bugzilla.cpanel.net/show_bug.cgi?id=8565

To change your UID and GID for the user that was created with the low UID and GIDs, do the following.

Lookup the highest UID in /etc/passwd and last GID in /etc/group

So if the last UID and GID are 33096

Then run

usermod -u 33097 USERNAME
groupmod -g 33097 USERNAME

replacing the USERNAME with the cpanel username you want to fix.

Once you change all the users, go the WHM and under the "Basic cPanel/WHM Setup" set the Minimum UID to the a number greater then your highest UID..
 

dolphyn

Well-Known Member
Nov 27, 2001
68
0
306
cPanel Access Level
Root Administrator
Same problem here, and the suggestion above seems to have fixed it.

Thanks GreenGiant!

EDIT: As noted by HostIt and others below, this method has some problems and is not a complete fix.
 
Last edited:

Bruceper

Member
Feb 7, 2004
9
0
151
I just came across this issue as well, a bit of a pain but nice to know there's a simple way to resolve it.
 

greengiant

Well-Known Member
Aug 31, 2003
48
0
156
Hi,

No problem happy to provide the fix. CPanel confirmed my bug report, so lets hope a fix shows up today. Having to run my fix manually on a large number of servers is a pain..

Thanks,
 

linux.newbie

Well-Known Member
Sep 8, 2006
73
0
156
uids causing quota issues

On a couple of servers, when new accounts are created, the uid is getting assigned in the range of 501, 502 etc. Normally cpanel used to allot uids in 5 digits like 32011 etc.

The new ones are having quota issues even though the accounts is newly created with no data uploaded. The quota shows files exist on /home and /usr partitions and searching the username and uid recursively does not reveal anything on /home outside the original home directory.

Anyone else facing the same issue ?
 

carluk

Well-Known Member
Sep 2, 2003
161
0
166
What about existing users?
 

jpenner

Registered
Apr 11, 2003
4
0
151
It appears that in "Basic cPanel/WHM Setup" in WHM, the setting for "Minimum UID" is now blank.

Change this back and any new users will have the right UIDs... You will still have to fix the ones that were created incorrectly.
 

mohit

Well-Known Member
Jul 12, 2005
553
0
166
Sticky On Internet
new accounts have 125MB used when created

Since the stable tree was updated, one by one all my servers running the stable version are showing 125MB used on a newly created account.

account from whm-->list accounts
and
user's cpanel main page stats show 125MB :confused:

however the Disk usage viewer in user cpanel shows shows 0.14MB.

Tried searching forums, can anyone link me to any such issue/thread before ?

thanks
 

cpanelinfoseeker

Well-Known Member
Oct 25, 2002
323
3
168
NE Illinois
cPanel Access Level
Root Administrator
Follow the fix in message #4 (greengiant) in this thread. The only thing I had to do after that was to re-apply the assigned package to the user and all seems fine (for now).

Ron

UPDATE: Found error in upgrading :
/bin/tar: Pod-Simple-3.07/ChangeLog: Cannot change ownership to uid 501, gid 501: Disk quota exceeded
several other similar errors also.

I'm now sending in a ticket.
Ron
 
Last edited:

mohit

Well-Known Member
Jul 12, 2005
553
0
166
Sticky On Internet
thanks all for the suggestions,


I'll try the solution and post the results soon.
 

HostIt

Well-Known Member
Feb 22, 2003
151
1
168
Hi,
Then run

usermod -u 33097 USERNAME
groupmod -g 33097 USERNAME
There's unfortunately one very large problem with this method, as I've just discovered.

Doing it this way will set the group ownership of all of their files to the old GID (501 for example) and will leave the /etc/passwd file with the wrong GID. These problems may well cause an Internal Server Error on their website depending on your setup, among other issues.

If you have done this and you see that their files do all have group ownership of 50x instead of "username", you'll want to run the following command - with usual caution and be sure you know what you're doing...

Example of bad group ownership on user "joebloggs" after running the above two commands:
drwxr-xr-x 12 joebloggs 501 4096 Dec 25 01:41 public_html/

Command to fix it:
find / -group 501 -exec chgrp -h joebloggs {} \;

Result:
drwxr-xr-x 12 joebloggs joebloggs 4096 Dec 25 01:41 public_html/

The correct way to change the GID and UID is as follows:


groupmod -g 33097 USERNAME
usermod -u 33097 -g 33097 USERNAME

Make sure you run the groupmod first, and also set the GID in the usermod command. This will ensure you don't face the problem above :)

You'll also probably have to run "chown -R root.root /home/.cpan/build" afterwards, as that seems to be where these incorrect ownership issues are occurring and causing inflated usage figures for these users.
 
Last edited:

safitech

Member
Jul 16, 2008
11
0
51
Quota issues with non-new users too?

I'm noticing some quota issues with users that aren't new... some have unexpectedly jumped from 6GB to 11GB... the 'Disk Usage' icon shows the correct amount but within WHM and as far as the quota checks go it things the account is 11GB. This is causing the user to get emails, and we have to increase the quotas temporarily so the accounts are usable as it pushed some over their limits.

I'm guessing this is in regards to the same problem since it just started like a day or so ago.

Ideas? Thoughts? Fix coming in a new STABLE build tonight?

If a CPanel admin wants to use our server to check and verify this please see [cPanel ID# 367646]
 
Last edited:

4u123

Well-Known Member
PartnerNOC
Jan 2, 2006
943
28
178
I'm noticing some quota issues with users that aren't new... some have unexpectedly jumped from 6GB to 11GB... the 'Disk Usage' icon shows the correct amount but within WHM and as far as the quota checks go it things the account is 11GB. This is causing the user to get emails, and we have to increase the quotas temporarily so the accounts are usable as it pushed some over their limits.

I'm guessing this is in regards to the same problem since it just started like a day or so ago.

Ideas? Thoughts? Fix coming in a new STABLE build tonight?

If a CPanel admin wants to use our server to check and verify this please see [cPanel ID# 367646]
This is unrelated. The problem happens on new accounts only.
 

4u123

Well-Known Member
PartnerNOC
Jan 2, 2006
943
28
178
The latest builds have been changed to never assign a uid under 510.
Ive had this problem with a new account yesterday. When you say "the latest builds" what do you mean exactly?

We have....

cPanel 11.24.4-R33472 - WHM 11.24.2

....and the issue is not fixed.
 

sergio2004

Well-Known Member
Feb 28, 2004
48
0
156
Rio de Janeiro
Hi All,

I try solve the problem using...

==============================================
"The correct way to change the GID and UID is as follows:

groupmod -g 33097 USERNAME
usermod -u 33097 -g 33097 USERNAME

Make sure you run the groupmod first, and also set the GID in the usermod command. This will ensure you don't face the problem above"
==============================================

But after I do this the uid and gid have the same number, like username(33100)/username(33100) with the folder permission 0755 and all the other users have in the folders the permission 0711 with the different number beside the usernames, like for example: username(33110)/username(33112).

The number of uid allways is less 2 then the number of gid in all of the users.

I put in the WHM "Basic cPanel/WHM Setup" the Minimum UID like "jpenner" said and now when I created a new account the uid and gid have the same numbers.

Is it right?

And the worst thing is that the account that I change the uid and gid loose the reference with it package and don`t permit to create an email account. I upgrade it to same package and the quota appear right but the problems with the email and the other things of package still occour.

Please, how can I solve this problem?

Thank you.
 

MRiscado

Member
Feb 22, 2004
22
0
151
Hi,

I have the same problem.
First ... cPanel create new accounts with low GID and UID.
I have high quota in domains without any files.
After I changed the minimum ID in "Basic cPanel/WHM Setup"... the uid and gid won the same number, exactly like the sergio2004 wrote.
(cPanel 11.24.4-S33345 - WHM 11.24.2 - X 3.9)
Any idea?