#1  
Old 7th September 2012, 12:53
djmostek djmostek is offline
Member
 
Join Date: Aug 2007
Posts: 63
Thanks: 5
Thanked 1 Time in 1 Post
Default Big problem with Chroot

Hello! I've given perm permissions by command
Code:
chown -R flex:flex /var/www/
to the /var/www/ catalogue (as I want to get access to this catalogu from ftp server) and then changed into
Code:
 chown -R ispconfig:ispconfig /var/www
to make it like it used to be and i have encountered 2 problems:

my main domain do not works (error ERROR 503 - Service Unavailable!)
and when I want to login as admin to my panel it returns me a bad password (I type data 100% correctly). What am I supposed to do now?

Last edited by djmostek; 7th September 2012 at 13:07.
Reply With Quote
Sponsored Links
  #2  
Old 7th September 2012, 14:00
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,499 Times in 4,328 Posts
Default

You did a recursive chown on all directories which destroyed the prmissions for all files and directories of the sites incl. their chroots. If you have a backup of the /var/www directory, the you should restore that as /var/ww and its subdirectories are owned by different users, each website has its own user and group and some directories are owned by root. So you can not undo your first command with a single chown -R again.

Btw, none f these directories are owned by user and group ispconfig, so your second command could not fix anything.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 7th September 2012, 16:10
djmostek djmostek is offline
Member
 
Join Date: Aug 2007
Posts: 63
Thanks: 5
Thanked 1 Time in 1 Post
Default

So if i have no backup of /var/www/ i should reinstall all the system? And how to list my ftp-server users? (commend pure-pw list) do not works

Last edited by djmostek; 7th September 2012 at 16:20.
Reply With Quote
  #4  
Old 7th September 2012, 22:37
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,499 Times in 4,328 Posts
Default

You can try to change /var/www to user and group root, then run the ispconfig resync tool for the websites, you find it in ispconfig under tools. If this wont help, a reinstall might be nescessary.

Your ftp users are in the mysql database, the table is named ftp_user
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 8th September 2012, 07:59
djmostek djmostek is offline
Member
 
Join Date: Aug 2007
Posts: 63
Thanks: 5
Thanked 1 Time in 1 Post
Default

Thank you till, and if I can have one more question: in what way can I access the mysql databse while phpmyadmin do not works? And how to use resync tool when I cannot access my ispconfig panel. Is there any remote way?

ps. While I am trying to change the ownership it returns mi 'its only read-only file system'.

Last edited by djmostek; 8th September 2012 at 08:04.
Reply With Quote
  #6  
Old 8th September 2012, 11:24
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

I'd do a reinstall - I guess this will save you a lot of time compared to trying to fix the system.

Anyway, if phpMyAdmin doesn't work, you can use the command line MySQL client. You can connect to MySQL as follows:

Code:
mysql -u root -p
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 8th September 2012, 14:35
djmostek djmostek is offline
Member
 
Join Date: Aug 2007
Posts: 63
Thanks: 5
Thanked 1 Time in 1 Post
Default

Yes you might be right. I've used this command in order to access mysql but it returns a problem. I guess that, however paintfull, it would be the only way - reinstalling the system.

Just for the future, as I want one of my users to have full access to /var/www/ catalogue - how to do it safetly?
Reply With Quote
  #8  
Old 8th September 2012, 17:37
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,499 Times in 4,328 Posts
 
Default

Quote:
Just for the future, as I want one of my users to have full access to /var/www/ catalogue - how to do it safetly?
The only user that can do this is the root user, e.g. by useing a scp connection. No other user has the priveliges to access all files of all sites.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
Mail send/recieve problem DKLeader Installation/Configuration 14 22nd February 2011 15:13
mail.err warnings and some mail unable to receive HellMind General 4 8th October 2010 19:57
BIG Problem Postfix issue admins Installation/Configuration 11 13th November 2009 10:05
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 12:20
Big Mail Problem :( kikobg General 8 28th December 2005 17:43


All times are GMT +2. The time now is 05:48.


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