/etc/group

Discussion in 'General' started by playcraft, May 28, 2010.

  1. playcraft

    playcraft New Member

    Which file adds user admispconfig to the /etc/group file? I need to have it also add apache.
     
  2. playcraft

    playcraft New Member

    Ispconfig rebuilds the group file on change which overwrites the file. So I need to have ispconfig add apache user along with admispconfig user.
     
  3. playcraft

    playcraft New Member

    User add/edit after new website

    Adding
    PHP:
    $mod->system->add_user_to_group("web".$doc_id,"apache");
    to /ispconfig/scripts/lib/config.lib.php adds the user apache when the initial website is added to ispconfig. But when a user is added to a website then this is overwritten under a different function. I cannot locate the function.
     
    Last edited: Sep 15, 2010
  4. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    I think you can do this in the make_docroot() function in /root/ispconfig/scripts/lib/config.lib.php.
     
  5. playcraft

    playcraft New Member

    I tried that (see previous thread). This seems to only work when the website/domain is first created but when a user is added or deleted later it does not add apache therefore it makes me think there is a separate function.
     
    Last edited: Sep 16, 2010
  6. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Then it's one of the user functions (user_insert, etc.), I guess.
     

Share This Page