![]() |
Statistics admin Bug????
I thing this could be a bug.
I have create a new site with 200MB disk space I loged as user admin to this site and i have uploaded (By using FTP) the site's file (Many pics and sounds available for donwloads) almost 150MB I checked how many disk space i used to this site. It said me 150MB. All work fine hire. Now i have changed the permitions to dowloaded directories to 717 and to all downloaded files to 644. I checked again how many disk space i used to this site. It said me 29MB!!!!. This is not right because i am using 150MB and not 29MB. I noticed the problem is cause i have chaged the permision specialy the group perimetions. The group permition should be 5 (read and execute) to get the right report. Off course the quota works fine and it does not allow me to extend the storage limit space... but the report of using space is wronk I am sure but i think the bandwith report is wronk also..... PS: Sory about my bad english Alexander |
There is no bug. If you want to change the permissions of files manually you have to configure the "du" command to be executed with root priveliges by sudo.
Then add the line: $go_info["server"]["sudo_du_enabled"] = true; to the file /home/admispconfig/ispconfig/lib/config.inc.php |
And how can I do it this step by step? I am using debian
|
Sudo installation on debian:
http://www.debianhelp.co.uk/sudo.htm http://www.linuxmanpages.com/man5/sudoers.5.php The user admispconfig must be enabled to run the "du" command. I dont have more detailed instructions here for the moment. |
It worked thx a lot :D
|
I already had found that setting for the du sudo :-) but I did not think further so I did not insert admispconfig into sudoers :-(
Now that I read the post you linked to I tried modifying my sudoers like this: Quote:
Quote:
so now that this works, shouldn't ispcfg display the corect values? well I tried again, the details about the folders file usage is now there, BUT it still says: Quote:
###edit### I noticed it does not work for the largest site, the smaller ones display correct values. here is the one that does not comply: Quote:
|
anymore ideas? it seems like the total DB space does not add to the total web space and logs are growing over the fixed size I set in ISPCFG panel
|
Seems to me that the sudo-check is broken in ispconfig =(
Even though sudo is enabled in /etc/sudoers for admispconfig it doesnt seem to show all the directories in statistics when I've run chmod 701 /var/www/web* I dont want other users snooping in eachothers directories, and I dont want to have to chroot everyone. Too much overhead. |
try this to the sudoers
Code:
admispconfig ALL=NOPASSWD: /usr/sbin/du * |
its /usr/bin/du on Debian
|
| All times are GMT +2. The time now is 20:30. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.