![]() |
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. :eek: How does it come to such a problem?! Please help asap Thanks!!! |
Please help ASAP, my a** is burning :eek:, 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...
|
Quote:
|
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 .... |
Quote:
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) |
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. |
Quote:
|
Quote:
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 -pCode:
startCode:
UPDATE USER: 746Code:
cd /var/wwwSo 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... |
@ blocker: That looks all fine so far. What is your problem?
|
Quote:
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 web168Code:
/var/www/web168# ls -la |
| All times are GMT +2. The time now is 21:25. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.