Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th June 2008, 16:54
blocker blocker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 177
Thanks: 9
Thanked 4 Times in 4 Posts
Default HELP!!! Wrong permissions

Hi all,

suddenly ALL permissions are wrong on 1 of my servers. The folders and subfolders in /var/www are owned by group 10590, which does not exist in /etc/group.
If i delete and then restore a site everything gets fixed, but i have more than 500 sites on the server. How does it come to such a problem?!

Please help asap
Thanks!!!
Reply With Quote
Sponsored Links
  #2  
Old 27th June 2008, 17:05
blocker blocker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 177
Thanks: 9
Thanked 4 Times in 4 Posts
Default

Please help ASAP, my a** is burning , how do i get the right permissions at once, as i said above, deleting and restoring site does do the job... The next question will be whys that happening, but first i need to fix that permission crap...
Reply With Quote
  #3  
Old 27th June 2008, 17:50
Snowman Snowman is offline
Senior Member
 
Join Date: Apr 2007
Posts: 120
Thanks: 38
Thanked 3 Times in 3 Posts
Default

Quote:
Originally Posted by blocker View Post
Please help ASAP, my a** is burning , how do i get the right permissions at once, as i said above, deleting and restoring site does do the job... The next question will be whys that happening, but first i need to fix that permission crap...
PASTE some examples.. it will help to find solution as soon as it is possible
Reply With Quote
  #4  
Old 27th June 2008, 18:10
blocker blocker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 177
Thanks: 9
Thanked 4 Times in 4 Posts
Default

what kind of examples

ALL the folders and subfolders in /var/www are owned by www-data:10590, and 10590 does not exist as ID or group name in /etc/group...

no idea hows that happened, yesterday everything was OK - up and running w/o any problems ....
Reply With Quote
  #5  
Old 27th June 2008, 19:30
Snowman Snowman is offline
Senior Member
 
Join Date: Apr 2007
Posts: 120
Thanks: 38
Thanked 3 Times in 3 Posts
Default

Quote:
Originally Posted by blocker View Post
what kind of examples
/etc/group

www-data:10590 is :LOL:
as i know if you have webs in /var/www (i.e.)
webs are numbered like : /var/www/web44/web/[content of webpage]

permissons must be
server:/var/www# ls -la | grep web44
drwxr-xr-x 9 domain_admin web44 4096 2008-06-12 22:13 web44
lrwxrwxrwx 1 www-data web44 22 2008-05-30 12:04 www.domain.com -> /var/www/web44

so www.domain.com is 777 because its symlink to /var/www/web44 and web44 is folder with 755 and its owned by domain admin and domain group so if you have web44 it should be "chown domain_admin.web44".
(symlinks are owned by www-data)

Are there any records of web[number] in /etc/group ? (i.e. web44:x:10044:admispconfig,domain.com_admin)
Reply With Quote
  #6  
Old 27th June 2008, 20:46
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,733
Thanks: 840
Thanked 5,596 Times in 4,407 Posts
Default

Please run the following 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 sites in ispconfig and click on save.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 27th June 2008, 21:46
Snowman Snowman is offline
Senior Member
 
Join Date: Apr 2007
Posts: 120
Thanks: 38
Thanked 3 Times in 3 Posts
Default

Quote:
Originally Posted by till View Post
Please run the following 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 sites in ispconfig and click on save.
lol straight to solution thnx
Reply With Quote
  #8  
Old 28th June 2008, 10:10
blocker blocker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 177
Thanks: 9
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by till View Post
Please run the following 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 sites in ispconfig and click on save.
Thanks Till!!!

Thats exactly what i was looking for!
But unfortunately it doesn't work for me. I have tried exactly your suggestion:

Code:
mysql -u root -p
use db_ispconfig;
update isp_isp_web set status = 'u' where status = '';
update isp_isp_user set status = 'u' where status = '';
quit
/root/ispconfig/php/bin/php /root/ispconfig/scripts/writeconf.php
the output is something like this:

Code:
start
UPDATE: 594
UPDATE: 595
UPDATE: 596
etc etc etc

UPDATE USER: 1
UPDATE USER: 2
UPDATE USER: 6
etc etc etc

ende
there were also a couple of warnings like this:

Code:
UPDATE USER: 746

Warning: symlink(): File exists in /root/ispconfig/scripts/lib/config.lib.php on line 933
UPDATE USER: 1494
after that:

Code:
cd /var/www
ls -la

drwxrwxrwx   8 admin_user                10590  4096 2008-06-28 08:50 web168
lrwxrwxrwx   1 www-data                   10590    15 2008-03-20 11:25 www.example.org -> /var/www/web168
(changed to 777, so the users at least can get the mails in their Maildirs...)

So i suppose the problem should be somewhere in the ispc database, in case the writeconf.php is started after a modification flag has been set to every user and site? This is really wired i am totally confused...
Reply With Quote
  #9  
Old 28th June 2008, 18:30
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,733
Thanks: 840
Thanked 5,596 Times in 4,407 Posts
Default

@ blocker: That looks all fine so far. What is your problem?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #10  
Old 30th June 2008, 09:53
blocker blocker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 177
Thanks: 9
Thanked 4 Times in 4 Posts
 
Default

Quote:
Originally Posted by till View Post
@ blocker: That looks all fine so far. What is your problem?
Hi Till,

my problem is that web168 (and all the other webs) has a group ownership of 10590 (such group name or group ID does no exist in /etc/group), this leads for example to another issue - users can not get their mails in the Maildir because (Permission denied)

example of a directory structure:

Code:
drwxrwxrwx   8 admin_user                10590  4096 2008-06-28 08:50 web168
lrwxrwxrwx   1 www-data                   10590    15 2008-03-20 11:25 www.example.org -> /var/www/web168
Code:
/var/www/web168# ls -la
drwxrwxrwx   8 admin_user  10590  4096 2008-06-28 08:50 .
drwxr-xr-x 539 www-data     10590 36864 2008-06-28 10:01 ..
drwxrwxrwx   2 admin_user  10590  4096 2007-06-29 12:13 cgi-bin
-rw-------   1 admin_user web168    24 2008-06-28 08:50 .forward
-rw-rw-r--   1 www-data    web168    26 2008-06-30 04:06 .htpasswd
drwxrwxrwx   4 admin_user web168  4096 2008-06-02 00:30 log
lrwxrwxrwx   1 root        root      40 2008-06-28 08:50 Maildir -> /var/www/web168/user/admin_user/Maildir
drwxrwxrwx   2 admin_user web168  4096 2007-06-29 12:13 phptmp
-rw-r--r--   1 root        root     478 2008-06-28 08:50 .procmailrc
lrwxrwxrwx   1 root        root      47 2008-06-28 08:50 .spamassassin -> /var/www/web168/user/admin_user/.spamassassin/
drwxrwxrwx   2 admin_user  10590  4096 2007-06-29 12:13 ssl
drwxrwxrwx   3 admin_user  10590  4096 2007-06-29 12:13 user
lrwxrwxrwx   1 root        root      48 2008-06-28 08:50 .vacation.cache -> /var/www/web168/user/admin_user/.vacation.cache
drwxrwxrwx  12 admin_user  10590  4096 2007-12-10 12:52 web
Thanks!
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
Pureftpd Permissions Problem GaulHahn Server Operation 6 17th October 2008 14:54
suPHP, Joomla! 1.5, file & diretory permissions pjdevries Installation/Configuration 17 19th June 2008 03:58
Logcheck Permissions Problems Drek Server Operation 1 7th September 2007 16:43
Installation Troubles bswinnerton Installation/Configuration 4 29th July 2007 17:56
permissions problem with sub folders of network drives tommo Server Operation 0 20th June 2007 16:50


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


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