New user using over 100 meg of space and nothing has been added yet

Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"

Top Level » TroubleShooting

New user using over 100 meg of space and nothing has been added yetLast Modified: Oct 3, 2016, 1:49 pm
If you have a user, let's call them ,
and you find that they're using more system quotas then than you think they should be, there could be other files on your system causing this error.

When a tar.gz file is extracted as root, the file ownership of it's contents will generally stay the same as they were on the system that compressed the tar.gz file.  This means that the user id number of the files will be extracted along with the files.  When you create your new user, his new user id might match the user id of the files that were extracted, so the system quotas will assume that the new user owns these other files thus adding large amounts of disk usage to the new user.

To resolve the problem, you'll have to find these other files and chown them to another user (or root) so that the new user doesn't absorb the "cost" of their space.  To that, you can use the "find" program:

[root@server]# id username
uid=510(username) gid=510(username) groups=510(username)
[root@server]# find / -uid 510 | less

This code will tell you the userid of the new user, and then let you track down where the files are on the system.  (press space to scroll).  Replace the 510 sample with the actual UID number returned by the system.

Once you find the files that shouldn't belong to the new user, then cd to that directory and "chown root *" the files (depending on which files they are) so that they no longer belong to the user.

You should be able to type

quota -v username

to see the current disk usage for that user.  If it isn't correct with the new settings, you'll need to update the system quotas:

/sbin/quotaoff -a; /sbin/quotacheck -augm; /sbin/quotaon -a;


/usr/sbin/quotaoff -a; /sbin/quotacheck -aug; /usr/sbin/quotaon -a;

Once the quota system catches that, you can run the tally to update his stats.

echo "action=tally&value=all" >> /usr/local/directadmin/data/task.queue

Because the above find command can be slow, you can also do a quick comparison with the contents of the User's home folder, eg:

cd /home
du username | sort -n
du -sh username

Related Helpfiles
The disk usage for a given User is higher than I think it should be.

© 2018 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST