#1  
Old 7th February 2006, 15:21
wwparrish wwparrish is offline
Junior Member
 
Join Date: Jan 2006
Posts: 28
Thanks: 0
Thanked 1 Time in 1 Post
Default Everything owned by root !!!

I started playing around (after reading the manual of course ) and made a single customer and a couple of sites with only one site having users. Tested my email etc. etc. OK, I deleted everything and emptied the trash.

I now have made only one customer (which is really just a dummy entry) and one site www.example.net and a couple of users for that site.

The entire directory tree is owned by root !!! Any ideas what in the world have I done and how can I fix it ? I have deleted the site a couple of times and recreated with same results.


ares:/var/www # ls -lR web3
web3:
total 36
drwxr-xr-x 9 root root 4096 Feb 7 09:07 .
drwxr-xr-x 6 root root 4096 Feb 7 08:41 ..
drwxrwxr-x 2 root root 4096 Feb 7 07:26 cgi-bin
drwxrwxr-x 3 root web3 4096 Feb 7 09:07 ftp
drwxr-xr-x 2 root root 4096 Feb 7 07:26 log
drwxrwxrwx 2 root web3 4096 Feb 7 07:26 phptmp
drwxr-xr-x 2 root root 4096 Feb 7 07:26 ssl
drwxr-xr-x 3 root root 4096 Feb 7 09:09 user
drwxrwxr-x 3 root root 4096 Feb 7 07:32 web

web3/cgi-bin:
total 8
drwxrwxr-x 2 root root 4096 Feb 7 07:26 .
drwxr-xr-x 9 root root 4096 Feb 7 09:07 ..
-rw-r--r-- 1 root root 0 Feb 7 07:26 .csc
-r-------- 1 root root 0 Feb 7 07:26 .no_delete

web3/ftp:
total 12
drwxrwxr-x 3 root web3 4096 Feb 7 09:07 .
drwxr-xr-x 9 root root 4096 Feb 7 09:07 ..
drwxrwx-wx 2 root web3 4096 Feb 7 09:07 incoming

web3/ftp/incoming:
total 8
drwxrwx-wx 2 root web3 4096 Feb 7 09:07 .
drwxrwxr-x 3 root web3 4096 Feb 7 09:07 ..

web3/log:
total 8
drwxr-xr-x 2 root root 4096 Feb 7 07:26 .
drwxr-xr-x 9 root root 4096 Feb 7 09:07 ..
-r-------- 1 root root 0 Feb 7 07:26 .no_delete
-rw-r--r-- 1 root web3 0 Feb 7 07:26 error.log

web3/phptmp:
total 8
drwxrwxrwx 2 root web3 4096 Feb 7 07:26 .
drwxr-xr-x 9 root root 4096 Feb 7 09:07 ..
-r-------- 1 root root 0 Feb 7 07:26 .no_delete

web3/ssl:
total 8
drwxr-xr-x 2 root root 4096 Feb 7 07:26 .
drwxr-xr-x 9 root root 4096 Feb 7 09:07 ..
-r-------- 1 root root 0 Feb 7 07:26 .no_delete

web3/user:
total 12
drwxr-xr-x 3 root root 4096 Feb 7 09:09 .
drwxr-xr-x 9 root root 4096 Feb 7 09:07 ..
-r-------- 1 root root 0 Feb 7 07:26 .no_delete
drwxr-xr-x 4 root root 4096 Feb 7 09:09 test1_lastname

web3/user/test1_lastname:
total 128
drwxr-xr-x 4 root root 4096 Feb 7 09:09 .
drwxr-xr-x 3 root root 4096 Feb 7 09:09 ..
-rw-r--r-- 1 root root 544 Feb 7 09:10 .antivirus.rc
-rw-r--r-- 1 root root 763 Feb 7 09:10 .autoresponder.rc
-rw-r--r-- 1 root root 22 Feb 7 09:10 .bounce-exceed-quota.txt
-rw------- 1 root root 24 Feb 7 09:10 .forward
-rw-r--r-- 1 root root 67866 Feb 7 09:10 .html-trap.rc
-rw-r--r-- 1 root root 3889 Feb 7 09:10 .local-rules.rc
-rw-r--r-- 1 root root 180 Feb 7 09:10 .mailsize.rc
-rw-r--r-- 1 root root 459 Feb 7 09:10 .procmailrc
-rw-r--r-- 1 root root 2668 Feb 7 09:10 .quota.rc
-rw-r--r-- 1 root root 1150 Feb 7 09:10 .spamassassin.rc
-rw-r--r-- 1 root root 1641 Feb 7 09:10 .user_prefs
-rw-r--r-- 1 root root 0 Feb 7 09:10 .vacation.msg
drwx------ 5 root root 4096 Feb 7 09:09 Maildir
drwxrwxr-x 2 root root 4096 Feb 7 09:09 web

web3/user/test1_lastname/Maildir:
total 20
drwx------ 5 root root 4096 Feb 7 09:09 .
drwxr-xr-x 4 root root 4096 Feb 7 09:09 ..
drwx------ 2 root root 4096 Feb 7 09:09 cur
drwx------ 2 root root 4096 Feb 7 09:09 new
drwx------ 2 root root 4096 Feb 7 09:09 tmp

web3/user/test1_lastname/Maildir/cur:
total 8
drwx------ 2 root root 4096 Feb 7 09:09 .
drwx------ 5 root root 4096 Feb 7 09:09 ..

web3/user/test1_lastname/Maildir/new:
total 8
drwx------ 2 root root 4096 Feb 7 09:09 .
drwx------ 5 root root 4096 Feb 7 09:09 ..

web3/user/test1_lastname/Maildir/tmp:
total 8
drwx------ 2 root root 4096 Feb 7 09:09 .
drwx------ 5 root root 4096 Feb 7 09:09 ..

web3/user/test1_lastname/web:
total 12
drwxrwxr-x 2 root root 4096 Feb 7 09:09 .
drwxr-xr-x 4 root root 4096 Feb 7 09:09 ..
-rwxrwxr-x 1 root root 1205 Feb 7 09:09 index.html

web3/web:
total 16
drwxrwxr-x 3 root root 4096 Feb 7 07:32 .
drwxr-xr-x 9 root root 4096 Feb 7 09:07 ..
drwxrwxr-x 2 root root 4096 Feb 7 07:26 error
-rw-rw-r-- 1 root web3 1182 Feb 7 09:10 index.html

web3/web/error:
total 36
drwxrwxr-x 2 root root 4096 Feb 7 07:26 .
drwxrwxr-x 3 root root 4096 Feb 7 07:32 ..
-r-------- 1 root root 0 Feb 7 07:26 .no_delete
-rw-rw-r-- 1 root web3 1190 Feb 7 07:26 authorizationRequired.html
-rw-rw-r-- 1 root web3 0 Feb 7 09:10 error_400.html
-rw-rw-r-- 1 root web3 0 Feb 7 09:10 error_401.html
-rw-rw-r-- 1 root web3 0 Feb 7 09:10 error_403.html
-rw-rw-r-- 1 root web3 0 Feb 7 09:10 error_404.html
-rw-rw-r-- 1 root web3 0 Feb 7 09:10 error_405.html
-rw-rw-r-- 1 root web3 0 Feb 7 09:10 error_500.html
-rw-rw-r-- 1 root web3 0 Feb 7 09:10 error_503.html
-rw-rw-r-- 1 root web3 1181 Feb 7 07:26 fileNotFound.html
-rw-rw-r-- 1 root web3 1172 Feb 7 07:26 forbidden.html
-rw-rw-r-- 1 root web3 1215 Feb 7 07:26 internalServerError.html
-rw-rw-r-- 1 root web3 1163 Feb 7 07:26 invalidSyntax.html
-rw-rw-r-- 1 root web3 1174 Feb 7 07:26 methodNotAllowed.html
-rw-rw-r-- 1 root web3 1225 Feb 7 07:26 overloaded.html
Reply With Quote
Sponsored Links
  #2  
Old 7th February 2006, 15:43
wwparrish wwparrish is offline
Junior Member
 
Join Date: Jan 2006
Posts: 28
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hmm I have messed something up for sure

I am thinking about deleting db_ispcong making sure all test users are removed by using system tools and starting over as I have gotten rid of everything in ispconfig and only need one site with a couple of test users so its very easy/fast to recreate everything. Bad idea ?

ares:/home/admispconfig/ispconfig # grep WARN *.log
Line 1861: WARNING: could not useradd -d /var/www/web2/ftp -g web2_anonftp -M -s /bin/false -u 12002 web2_anonftp &> /dev/null
07.02.2006 - 08:37:28 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 851: WARNING: could not setquota -u test2_lastname 0 0 0 0 -a &> /dev/null
07.02.2006 - 08:37:28 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 851: WARNING: could not setquota -u test1_lastname 0 0 0 0 -a &> /dev/null
07.02.2006 - 08:37:28 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 1860: WARNING: could not groupadd -g 12002 web2_anonftp &> /dev/null
07.02.2006 - 08:37:28 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 1861: WARNING: could not useradd -d /var/www/web2/ftp -g web2_anonftp -M -s /bin/false -u 12002 web2_anonftp &> /dev/null
07.02.2006 - 08:41:19 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 920: WARNING: could not setquota -u test2_lastname 0 0 0 0 -a &> /dev/null
07.02.2006 - 08:41:19 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 920: WARNING: could not setquota -u test1_lastname 0 0 0 0 -a &> /dev/null
07.02.2006 - 09:08:37 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 1860: WARNING: could not groupadd -g 12003 web3_anonftp &> /dev/null
07.02.2006 - 09:08:37 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 1861: WARNING: could not useradd -d /var/www/web3/ftp -g web3_anonftp -M -s /bin/false -u 12003 web3_anonftp &> /dev/null
07.02.2006 - 09:09:58 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 695: WARNING: could not setquota -u test1_lastname 0 0 0 0 -a &> /dev/null
07.02.2006 - 09:09:59 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 1860: WARNING: could not groupadd -g 12003 web3_anonftp &> /dev/null
07.02.2006 - 09:09:59 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 1861: WARNING: could not useradd -d /var/www/web3/ftp -g web3_anonftp -M -s /bin/false -u 12003 web3_anonftp &> /dev/null
07.02.2006 - 09:10:10 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 851: WARNING: could not setquota -u test1_lastname 0 0 0 0 -a &> /dev/null
07.02.2006 - 09:10:10 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 1860: WARNING: could not groupadd -g 12003 web3_anonftp &> /dev/null
07.02.2006 - 09:10:10 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 1861: WARNING: could not useradd -d /var/www/web3/ftp -g web3_anonftp -M -s /bin/false -u 12003 web3_anonftp &> /dev/null
ares:/home/admispconfig/ispconfig #
Reply With Quote
  #3  
Old 7th February 2006, 16:30
wwparrish wwparrish is offline
Junior Member
 
Join Date: Jan 2006
Posts: 28
Thanks: 0
Thanked 1 Time in 1 Post
Default

oooowwww ahhhhhhhhh phpMyAdmin is certainly worth installing. sweet!
Reply With Quote
  #4  
Old 7th February 2006, 17:40
wwparrish wwparrish is offline
Junior Member
 
Join Date: Jan 2006
Posts: 28
Thanks: 0
Thanked 1 Time in 1 Post
Default

ok screw it reinstalling ispconfig. again.
Reply With Quote
  #5  
Old 7th February 2006, 18:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Quote:
Originally Posted by wwparrish
07.02.2006 - 09:10:10 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 1860: WARNING: could not groupadd -g 12003 web3_anonftp &> /dev/null
07.02.2006 - 09:10:10 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 1861: WARNING: could not useradd -d /var/www/web3/ftp -g web3_anonftp -M -s /bin/false -u 12003 web3_anonftp &> /dev/null
Something seems to be wrong when ISPConfig tries to create users and groups. I'm sure this is the reason why all your files are owned by root (I guess ISPConfig tried to chown the files, but because the user didn't exist (because of the failed useradd), the files and directories are now owned by root).

You can run the commands marked in red on the command line to see what errors come up.
__________________
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
  #6  
Old 7th February 2006, 19:17
wwparrish wwparrish is offline
Junior Member
 
Join Date: Jan 2006
Posts: 28
Thanks: 0
Thanked 1 Time in 1 Post
Default

what I have discovered (and its my fault for messing aroudn so much I guess) is that removing the two directories (from others posts, cant remember them offhand) and deleting the database db_ispconfig does not clean up sufficiently to do another install. After removing old users from /etc/passwd and the /home/admispconfig/ispconfig /users file things clean up much better. there are apparently are an apache2 and a proftp config file that could use some cleaning too. I might be causing the problem by not using the web[WEBID] prefix.

Where is the uninstall utilty for when the install goes ok ? It probally give a nice cleanup but darn if I can find it again
Reply With Quote
  #7  
Old 7th February 2006, 21:25
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
 
Default

Quote:
Originally Posted by wwparrish
Where is the uninstall utilty for when the install goes ok ? It probally give a nice cleanup but darn if I can find it again
It's /root/ispconfig/uninstall.
__________________
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
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
Can't receive email mzo Installation/Configuration 17 3rd November 2011 15:59
Postfix error dianer Installation/Configuration 22 8th May 2006 00:31
Users Cannot Delete Files in FTP Ran2004 Server Operation 9 19th January 2006 06:36
empty recycle bin + commit changes immediately Ovidiu General 10 18th January 2006 21:19
ISPConfig pop3 problem mphayesuk General 21 31st October 2005 10:53


All times are GMT +2. The time now is 01:26.


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