|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
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 usernameto 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;FreeBSD:
/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:
|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