ispCP - Board - Support
Problem with chown - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: Problem with chown (/thread-5172.html)



Problem with chown - paladino - 12-17-2008 03:20 AM

Hi,

i have a problem with the owners of the system files.

by mistake i execute chown -R root:root /*

wen its should be chown -R root:root ./*

now all websites are offline and return an 403 error

i new help to correct the files to the right users...

on apache restart i received the message:

Warning: SuexecUserGroup directive requires SUEXEC wrapper.

Thanks!


RE: Problem with chown - grg - 12-17-2008 03:29 AM

Hi paladino.

I think that the only way you have to restore this is a complete reinstall.

You can chown all websites simply taking user and group from /etc/passwd, but for the rest of your files (conf files, sitem files, all files in /var/...) you can't do anything.

GrG


RE: Problem with chown - coper - 12-17-2008 03:35 AM

(12-17-2008 03:29 AM)grg Wrote:  Hi paladino.

I think that the only way you have to restore this is a complete reinstall.

You can chown all websites simply taking user and group from /etc/passwd, but for the rest of your files (conf files, sitem files, all files in /var/...) you can't do anything.

GrG

That's right, and you can chown the rest of the system files copying from another installed system. But that will take you a lot of time and it must be an identical system with the same applications. This is an operating system issue. Sorry but bad luck...you did't man.


RE: Problem with chown - paladino - 12-17-2008 03:35 AM

i need a faster solution..

its impossible send me any script to correct it based on installed files of other server??

i finish my instalation yerterday transfering the file of another server..

its a problem to me transfer all data again to the new server... and the server its in production now.. =//


RE: Problem with chown - grg - 12-17-2008 04:45 AM

Yes, it's possibible to have a script to do it, but you need someone that creates it!

You can move files to a partition that you won't delete, you can buy a backup space or a VPS to move files if you can't move them from the old server.

GrG
I have had annother idea that seems to be more intelligent:

1 - Disable IspCP and FTP access
2 - Disable Suexec
3 - Launch "chown -R apache2:apache2 /var/www/virtual/"
4 - Launch "chmod -R 755 /var/www/virtual/"
5 - Restart apache

DON'T reboot the server, maybe it won't come up anymore.

6 - Buy another server
7 - Install IspCP
8 - Create all users
9 - Move files (using rsync)
10 - Chown all users directories (take new user and group from /etc/passwd)
11 - Update DNS records

I think that's the best solution for you.


RE: Problem with chown - nuno - 12-17-2008 11:23 AM

not sure if this helps, but for now to put yours sites up you can try run this

http://www.isp-control.net/documentation/howto/ispcp/regenerate_config

or
#/etc/init.d/ispcp_daemon stop
#/var/www/ispcp/engine/ispcp-rqst-mngr
#/etc/init.d/ispcp_daemon start

NOT SURE IF WORK but somebody can give more tips


RE: Problem with chown - paladino - 12-17-2008 11:45 AM

nothing work.... i now reinstaling all the system.... =/


RE: Problem with chown - grg - 12-18-2008 01:59 AM

That's the best choice.

Don't worry, i've also done an error like your's Smile (the ssh output is now in front of me, over my desk). I launched a "mv htdocs /* *".

I think you need a backup server... Of course you won't repeat this error another time, but maybe something else will happen...