Improper group on domain directories

Discussion in 'Installation/Configuration' started by catdude, Sep 14, 2007.

  1. catdude

    catdude ISPConfig Developer ISPConfig Developer

    I've noticed an interesting problem in the last couple days. Some of my users are complaining about not being able to FTP web files. When I look at their web directory I see that the permissions and owner are correct, but the group is wrong. So far every time this has happened, the group has been set to that of the last customer added to the system.

    Is this due to something I'm doing incorrectly when I set up the problem customer? And is there an easy way to fix it? I'm now going through and doing a chgrp on the directories I find with the problem, but I'm afraid they might get reset to the wrong values again when I add another customer.
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Do you mean user instead of customer? Because a customer is an ISPConfig user, not a system user.

    Which ISPConfig version do you use? Any errors in /home/admispconfig/ispconfig/ispconfig.log?
     
  3. catdude

    catdude ISPConfig Developer ISPConfig Developer

    Software version is 2.2.13.

    I'm not seeing any errors in ispconfig.log.

    Here's what I mean: I add a customer named Joe Blow's Machine Shop with domain joeblowmachine.com. When I look in /its/isp/hosted I see a directory "web241" and a symbolic link from /its/isp/hosted/web241 to /its/isp/hosted/www.joeblowmachine.com. I then add a customer "Martha's Cookies" with domain 'marthascookies.com". Looking in /its/isp/hosted I see a directory /its/isp/hosted/web251 with a symbolic link from there to /its/isp/hosted/www.marthascookies.com. FInally, I add a customer named "Beavis Outdoors" with domain name "beavisoutdoors.com" and see a directory named /its/isp/hosted/web261, with a sym link to /its/isp/hosted/www.beavisoutdoors.com.

    When I look at files in /its/isp/hosted/www.joeblowmachine.com, I find a lot of the files and directories belong to user www-data and group web261. I would expect them to belong to www:web241.

    My question then is why would files within the /its/isp/hosted/web241 and /its/isp/hosted/web251 directories belong to group /its/isp/hosted/web261? If I use one of the recipes posted before (setting the "status" field in a given table to '' then changing a value using the admin interface), will that fix the permissions? Specifically, such that the files in /its/isp/hosted/web241 will belong to group web241, etc?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Does all the sites have a administrator user? Also I recommend to update your ISPConfig to 2.2.16.

    Yes, that might work.
     
  5. catdude

    catdude ISPConfig Developer ISPConfig Developer

    By administrator user, do you mean a mail account with the "Administrator" flag set, or a user set up in the customer-level "Login" tab?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    I mean the email user with "administrator" checked. Clients never have access to the server with FTP / SSH / POP3 / IMAP / SMTP as they are no linux users.
     

Share This Page