Ownership of user files?

Discussion in 'Installation/Configuration' started by catdude, Aug 17, 2007.

  1. catdude

    catdude ISPConfig Developer ISPConfig Developer

    One of the domains installed on my ISPConfig server is varmints.us. I ntoiced this morning that the <hosting base dir>/www.varmints.us/user directory contains:
    ge:/its/isp/hosted/www.varmints.us/user# ls -al
    total 16
    drwxrwxr-x 4 varmints.us_dan web1631 4096 2007-08-17 09:57 .
    drwxrwxr-x 9 varmints.us_dan web1631 4096 2007-08-17 09:57 ..
    -rwxrwxr-x 1 www-data web1631 0 2007-08-16 13:18 .no_delete
    drwxrwxr-x 4 www-data web1631 4096 2007-08-16 14:30 varmints.us_brian
    drwxr-xr-x 4 varmints.us_dan web382 4096 2007-08-17 09:57 varmints.us_dan

    THe user directory for another domain I've got installed looks like:
    ge:/its/isp/hosted/www.varmints.us/user# ls -al ../../www.<domain>.biz/user
    total 32
    drwxrwxr-x 8 www-data web1631 4096 2007-08-16 09:30 .
    drwxrwxr-x 9 www-data web1631 4096 2007-08-16 11:24 ..
    drwxrwxr-x 4 www-data web1631 4096 2007-08-15 11:14 <domain>.biz_ads
    drwxrwxr-x 4 www-data web1631 4096 2007-08-15 11:14 <domain>.biz_editor
    drwxrwxr-x 4 www-data web1631 4096 2007-08-15 11:14 <domain>.biz_news
    drwxrwxr-x 4 www-data web1631 4096 2007-08-15 11:15 <domain>.biz_pauls
    drwxrwxr-x 4 www-data web1631 4096 2007-08-15 14:29 <domain>.biz_sports
    drwxrwxr-x 4 www-data web1631 4096 2007-08-16 11:24 <domain>.biz_troyv
    -rwxrwxr-x 1 www-data web1631 0 2007-08-15 11:13 .no_delete

    The dan@varmints.us was deleted last night and recreated this morning. Since it created most recently, I am assuming that the ownership of this dir is correct. What should the ownership of these user dirs and the Maildirs under them be? Any clues as to how the file owners might have been reset to www-data? FWIW, while I was working on importing users into one of working domains last night, a coworker was creating new clients.
     
  2. catdude

    catdude ISPConfig Developer ISPConfig Developer

    Suspicious rcfile

    Additional information:

    I'm getting messages like:
    Aug 17 12:41:50 ge procmail[8321]: Suspicious rcfile "/its/isp/hosted/web221/user/<domain>.biz_ads/.procmailrc"

    The .procmailrc file is currently:
    -rwxrwxr-x 1 <domain>.biz_ads web221 548 2007-08-16 11:24 .procmailrc

    Some of the .procmailrc files in other user's directories look like:

    Which is correct? What do I need to do to get rid of the "Sucpicious rcfile" messages?

    Another manifestation of this problem: an ls -Al of the hosting base directory shows:
    drwxrwxr-x 2 www-data web1631 4096 2007-08-15 13:57 sharedip
    drwxrwxr-x 8 www-data web1631 4096 2007-08-17 04:01 web1002
    drwxrwxr-x 9 www-data web1631 4096 2007-08-17 04:01 web1012
    drwxrwxr-x 8 www-data web1631 4096 2007-08-17 04:01 web1022
    drwxrwxr-x 9 www-data web1631 4096 2007-08-17 04:01 web1032
    drwxrwxr-x 8 www-data web1631 4096 2007-08-17 04:01 web1042
    drwxrwxr-x 9 www-data web1631 4096 2007-08-17 04:01 web1052
    drwxrwxr-x 9 www-data web1631 4096 2007-08-17 04:01 web1062
    drwxrwxr-x 9 www-data web1631 4096 2007-08-17 04:01 web1072
    drwxrwxr-x 8 www-data web1631 4096 2007-08-17 04:01 web1082

    It's obviously incorrect for all of the client directories to be group web1631. Some other domains appear to be set ok:
    drwxrwxr-x 8 www-data web1641 4096 2007-08-17 09:07 web1641
    drwxr-xr-x 8 www-data web1651 4096 2007-08-17 09:29 web1651
    drwxr-xr-x 9 www-data web1661 4096 2007-08-17 09:32 web1661
    drwxr-xr-x 9 www-data web1671 4096 2007-08-17 09:35 web1671
    drwxr-xr-x 9 www-data web1681 4096 2007-08-17 09:37 web1681
    drwxr-xr-x 9 www-data web1691 4096 2007-08-17 09:39 web1691
    drwxr-xr-x 9 www-data web1701 4096 2007-08-17 10:39 web1701
    drwxr-xr-x 8 www-data web1711 4096 2007-08-17 10:42 web1711
    drwxr-xr-x 9 www-data web1721 4096 2007-08-17 10:46 web1721
    drwxr-xr-x 9 www-data web1731 4096 2007-08-17 11:00 web1731 (this client added just about an hour ag)
    drwxr-xr-x 8 www-data web1741 4096 2007-08-17 11:21 web1741
    drwxr-xr-x 8 www-data web1751 4096 2007-08-17 11:24 web1751
    drwxr-xr-x 9 www-data web1761 4096 2007-08-17 11:27 web1761
    drwxr-xr-x 9 www-data web1771 4096 2007-08-17 11:30 web1771

    Is there any chance that the massive incorrect groups (web1631) could have been done by some sort of hiccup within ISPConfig? Is this something that anyone else has seen before?
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Please run the following sql stament on the database:

    update isp_isp_web set status = 'u' where status = '';

    Then change a value, e.g. quota in one of the websites and save the change. ISPConfig should now correct the permissions for all websites.

    The ownership of the userfiles in the first post seems to be ok, you just seem to have not created a administartor user in the second website.
     
  4. catdude

    catdude ISPConfig Developer ISPConfig Developer

    Ownership of user files

    Excellent! Thank you.
     

Share This Page