#1  
Old 27th April 2007, 09:38
Skirmantas Skirmantas is offline
Junior Member
 
Join Date: Aug 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help! Rebuild permissions

Hello, don't know, but all /home/www/ dirs owner became www-data. How can I rebuild permisions with ISPconfig from database as they should be?

Thanko you for help!
S.
Reply With Quote
Sponsored Links
  #2  
Old 27th April 2007, 12:33
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,020
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

Quote:
Originally Posted by Skirmantas
Hello, don't know, but all /home/www/ dirs owner became www-data. How can I rebuild permisions with ISPconfig from database as they should be?

Thanko you for help!
S.
Run the following two SQL statements in the ISPConfig database:

UPDATE isp_isp_web SET status = 'u' WHERE status = '';
UPDATE isp_isp_user SET status = 'u' WHERE status = '';

Then change a setting in one of the websites in ISPConfig and ISPConfig will start to rebuild the permissions and user settings.

Can you find any errors in the ispconfig.log file that may explain the problem?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 27th April 2007, 14:16
Skirmantas Skirmantas is offline
Junior Member
 
Join Date: Aug 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you it helped to solve the problem. Can't find any errors that can be the reason for this. But it happend after when I added about 50 new sites. Now there are about 600 sites and systems tooks a time to create domains, but I added them very quickly, maybe here something goes wrong.

Thank you Till for quick answer!
Reply With Quote
  #4  
Old 27th April 2007, 19:55
Skirmantas Skirmantas is offline
Junior Member
 
Join Date: Aug 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till
Run the following two SQL statements in the ISPConfig database:

UPDATE isp_isp_web SET status = 'u' WHERE status = '';
UPDATE isp_isp_user SET status = 'u' WHERE status = '';

Then change a setting in one of the websites in ISPConfig and ISPConfig will start to rebuild the permissions and user settings.

Can you find any errors in the ispconfig.log file that may explain the problem?
not everything is ok after this, some sites has good permisions, but some has only usernames ok, but not groups. Half sites has web538, instead of web100, or web101. And these sites also has not good permisions in /www.domain.tld/users/here owner dirs by www-data, not by users. Don't know that to do:/
Reply With Quote
  #5  
Old 27th April 2007, 22:34
Skirmantas Skirmantas is offline
Junior Member
 
Join Date: Aug 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till
Run the following two SQL statements in the ISPConfig database:

UPDATE isp_isp_web SET status = 'u' WHERE status = '';
UPDATE isp_isp_user SET status = 'u' WHERE status = '';

Then change a setting in one of the websites in ISPConfig and ISPConfig will start to rebuild the permissions and user settings.

Can you find any errors in the ispconfig.log file that may explain the problem?
I'm getting good result only after deleting and restoring web site from recycle bin. Atfer that all permisions a up good and working. Is any way to rebuild all permisions without deleting/restoring ?

Thanks,
S.
Reply With Quote
  #6  
Old 28th April 2007, 19:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Are there any errors in /home/admispconfig/ispconfig/ispconfig.log?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 30th April 2007, 20:44
Skirmantas Skirmantas is offline
Junior Member
 
Join Date: Aug 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
Are there any errors in /home/admispconfig/ispconfig/ispconfig.log?
Hello, no where aren't any errors. But one strange thing.
Expl.
Have one client by name client1 and this client have about ~150 websites. For example his first website is /www/web1/* and if I'm deleting his /www/web554/* website from ISPconfig panel, it also deletes the web554 and web1 site, but not all files, only the /www/web1/user dir. Ispconfig log:

30.04.2007 - 20:27:50 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2473: rm -fr /home/www/www.DEMO321.lt
30.04.2007 - 20:27:50 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2474: rm -fr /home/www/web554
30.04.2007 - 20:27:50 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2479: setquota -g web554 0 0 0 0 -a &> /dev/null
30.04.2007 - 20:28:16 => DEBUG - The recycle bin cannot be accessed because the system is currently being updated. Please try again in a few minutes.<br><br> <a href='../frame_start.php?'>Next &gt;&gt;</a>
30.04.2007 - 20:28:23 => DEBUG - The recycle bin cannot be accessed because the system is currently being updated. Please try again in a few minutes.<br><br> <a href='../frame_start.php?'>Next &gt;&gt;</a>
30.04.2007 - 20:28:26 => DEBUG - The recycle bin cannot be accessed because the system is currently being updated. Please try again in a few minutes.<br><br> <a href='../frame_start.php?'>Next &gt;&gt;</a>
30.04.2007 - 20:28:29 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2498: rm -fr /home/www/web1/user/ THATS is going with this?Why? The ISPconfig panel were working good for 1.5 year without a problem. It happend after that when I added huge amout of websites for Client1. No manually entry, only via ISPconfig panel.

Please help,
Thanks
S.

Last edited by Skirmantas; 30th April 2007 at 20:47.
Reply With Quote
  #8  
Old 30th April 2007, 21:11
Skirmantas Skirmantas is offline
Junior Member
 
Join Date: Aug 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Another example.

Created Client by name DEMO, and two websites DEMO1.lt and DEMO2.lt. When I'm deleting DEMO2.lt websites it also deletes the web1/user/ dir.

30.04.2007 - 21:07:02 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 696: /etc/init.d/postfix stop &> /dev/null
30.04.2007 - 21:07:02 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 696: /etc/init.d/postfix start &> /dev/null
30.04.2007 - 21:07:02 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1888: cp -fr /etc/proftpd_ispconfig.conf /etc/proftpd_ispconfig.conf~
30.04.2007 - 21:07:02 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2498: rm -fr /home/www/web556/user/k556_admin
30.04.2007 - 21:07:02 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2473: rm -fr /home/www/www.DEMO2.lt
30.04.2007 - 21:07:02 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2474: rm -fr /home/www/web556
30.04.2007 - 21:07:02 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2479: setquota -g web556 0 0 0 0 -a &> /dev/null
30.04.2007 - 21:07:32 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2498: rm -fr /home/www/web1/user/
Reply With Quote
  #9  
Old 1st May 2007, 21:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
 
Default

Did you maybe modify your ISPConfig database?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig, postfix, dovecot: incorrect permissions arsen.gushin Installation/Configuration 9 4th March 2009 11:34
Pureftpd Permissions Problem GaulHahn Server Operation 6 17th October 2008 14:54
bind issues with permissions always changing djtremors General 3 11th March 2007 13:58
Permissions with ntfs3g usb disk on ubuntu Toaste HOWTO-Related Questions 0 17th February 2007 01:40
Apache permissions misterm Installation/Configuration 4 8th September 2005 13:31


All times are GMT +2. The time now is 17:22.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.