![]() |
Wrong chmod!!
Hi everybody,
I'm a little bit in trouble guys! I was changing permission on a folder to compleate an installation (joomla) I type in this command: chown -R -v -f web22_xxxxx:web22 /* :eek: In this way I changed a lot of files and folder permissions!! I would like to change only the permission on 1 specific folder (the web folder). I'm not a linux expert, I'm only trying to do the best of myself... By the way when I realized that the command was wrong it was to late!! The command run only for few seconds but now I can't log on my ISPConfig admin console! I receive this error: Code:
Warning: include(../lib/config.inc.php) [function.include]: failed to open stream: Permission denied in /home/admispconfig/ispconfig/web/login.php on line 30changed ownership of `/home/admispconfig/ispconfig/web/phpmyadmin/themes/original/img/b_lastpage.png' to web22_xxxxxx:web22 Do you know if exists an easy way to go back?? I really don't know what I can do! Please help, :( :eek: Thanks /nox |
Quote:
|
But,
do you know in which way it start to edit the permission? Starting in alphabetic order or something like that? I have another server that have the same installation. Perhaps I can try to change again the permission one by one spotting them on the other server. The problem is that I need to know where to start... :( Also can you tell me the right command to edit the permission on one specific folder? Thanks |
You could try setting the owner to root, do know if it would work:rolleyes:
|
I would try to recover the situation... not destroy everything... Actually i wouldn't like to re-install again!
|
ok...
looking to the other server I can see the folders where I've changed the permission. Now I'd like to know the right command to edit permission... Thanks!!! |
chown normally starts with the lowest numbered i-node. See this as a unique identifier. The way i-nodes are numbered differ from system to system, even if you use the same installation/distro.
If you want to compare everything manually, open three ssh sessions, one to your working system (system A), two to your corrupted system (system B). Type Code:
cd /Code:
chown right_user.right_group <full file name>Do all this as user 'root'. Be prepared to work on this for about two days, depending how much you installed. |
Right thanks
I've just started. I found something like that: Code:
server1:/bin # chown root:root /bin/*using this command: Code:
chown root:root /bin/*Do you know why? |
-> indicate a symbolic link, a pointer to the actual file. To change the symbolic link owner/group add the -h flag:
Code:
chown -h root:root /bin/filename |
Thank you guys for your quick help!
After 2 full days of work my ISPconfig is again online!! :D |
| All times are GMT +2. The time now is 23:58. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.