Everything owned by root !!!

Discussion in 'Installation/Configuration' started by wwparrish, Feb 7, 2006.

  1. wwparrish

    wwparrish New Member

    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
     
  2. wwparrish

    wwparrish New Member

    Hmm I have messed something up for sure :D

    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 #
     
  3. wwparrish

    wwparrish New Member

    oooowwww ahhhhhhhhh phpMyAdmin is certainly worth installing. sweet!
     
  4. wwparrish

    wwparrish New Member

    ok screw it reinstalling ispconfig. again.
     
  5. falko

    falko Super Moderator Howtoforge Staff

    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.
     
  6. wwparrish

    wwparrish New Member

    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 :eek:
     
  7. falko

    falko Super Moderator Howtoforge Staff

    It's /root/ispconfig/uninstall.
     

Share This Page