Current time: 11-16-2024, 11:24 AM Hello There, Guest! (LoginRegister)


Post Reply 
Problem with chown
Author Message
paladino Offline
Junior Member
*

Posts: 12
Joined: Jun 2007
Reputation: 0
Post: #1
Problem with chown
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!
12-17-2008 03:20 AM
Find all posts by this user Quote this message in a reply
grg Offline
Junior Member
*

Posts: 49
Joined: Sep 2008
Reputation: 0
Post: #2
RE: Problem with chown
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
12-17-2008 03:29 AM
Visit this user's website Find all posts by this user Quote this message in a reply
coper Offline
Junior Member
*

Posts: 91
Joined: Nov 2008
Reputation: 0
Post: #3
RE: Problem with chown
(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.
12-17-2008 03:35 AM
Find all posts by this user Quote this message in a reply
paladino Offline
Junior Member
*

Posts: 12
Joined: Jun 2007
Reputation: 0
Post: #4
RE: Problem with chown
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.. =//
12-17-2008 03:35 AM
Find all posts by this user Quote this message in a reply
grg Offline
Junior Member
*

Posts: 49
Joined: Sep 2008
Reputation: 0
Post: #5
RE: Problem with chown
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.
(This post was last modified: 12-17-2008 04:59 AM by grg.)
12-17-2008 04:45 AM
Visit this user's website Find all posts by this user Quote this message in a reply
nuno Offline
Junior Member
*

Posts: 92
Joined: Jun 2008
Reputation: 1
Post: #6
RE: Problem with chown
not sure if this helps, but for now to put yours sites up you can try run this

http://www.isp-control.net/documentation...ate_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
12-17-2008 11:23 AM
Find all posts by this user Quote this message in a reply
paladino Offline
Junior Member
*

Posts: 12
Joined: Jun 2007
Reputation: 0
Post: #7
RE: Problem with chown
nothing work.... i now reinstaling all the system.... =/
12-17-2008 11:45 AM
Find all posts by this user Quote this message in a reply
grg Offline
Junior Member
*

Posts: 49
Joined: Sep 2008
Reputation: 0
Post: #8
RE: Problem with chown
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...
12-18-2008 01:59 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)