View Single Post
  #6  
Old 9th March 2006, 08:54
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,265
Thanks: 80
Thanked 24 Times in 20 Posts
Default

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:
admispconfig ALL=NOPASSWD: /usr/bin/du *
I added that line using visudo and tried su admispconfig then du -s -c -h web2/ and here is the output:

Quote:
admispconfig@h5810:/var/www$ du -c -s -h web2
du: ,,web2/web/brasov/php/poll/lang": Keine Berechtigung
du: ,,web2/web/bucuresti/php/poll/lang": Keine Berechtigung
du: ,,web2/web/cluj/php/poll/lang": Keine Berechtigung
du: ,,web2/web/sibiu/php/poll/lang": Keine Berechtigung
du: ,,web2/web/timisoara/php/poll/lang": Keine Berechtigung
du: ,,web2/user/web2_tibi/Maildir": Keine Berechtigung
du: ,,web2/user/web2_info/Maildir": Keine Berechtigung
du: ,,web2/user/web2_info/.spamassassin": Keine Berechtigung
du: ,,web2/user/web2_info/tmp": Keine Berechtigung
du: ,,web2/user/web2_info/.pyzor": Keine Berechtigung
du: ,,web2/user/web2_dark/Maildir": Keine Berechtigung
du: ,,web2/user/web2_timisoara/Maildir": Keine Berechtigung
du: ,,web2/tmp": Keine Berechtigung
du: ,,web2/.spamassassin": Keine Berechtigung
du: ,,web2/.pyzor": Keine Berechtigung
3,9G web2
3,9G insgesamt
admispconfig@h5810:/var/www$
BUT I can get this output even without putting admispconfig into sudoers , strange...

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:
Storage space: 6000 MB
used: 11015.09k
meaning the folder sizes do not get added up to the total, total still only shows the size of the databases...

###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:
Storage space: 6000 MB
used: 11015.27k



/web 1,6G
/user 640K
/log 768M
/cgi-bin 4,0K
/ssl 4,0K
/phptmp 4,0K
/backup 1,6G
/tmp 4,0K
/.spamassassin 40K
/.pyzor 8,0K
DB::MySQL 11012.3k

Last edited by Ovidiu; 9th March 2006 at 09:53.
Reply With Quote