Pkg files

Discussion in 'General' started by jnsc, Oct 6, 2006.

  1. jnsc

    jnsc rotaredoM Moderator

    I'am trying to make a pkg file. In the package.ins I want to create a new directory, I'am using the following line :
    MKDIR: "/etc/mypkg_conf";
    but I'm told: Cannot create direktory: '/etc/mypkg_conf'

    Did I miss someting, I'am using RequiredUser=admispconfig

    Am I allowed to create directories outside of {app}?
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    I guess the user admispconfig has not the permission to create directories in /etc.

    You can test it like this:

    1) Login to your server as root user on the shell.
    2) switch to the user admispconfig with the command:

    su admispconfig

    3) execute:

    mkdir /etc/mypkg_conf
  3. jnsc

    jnsc rotaredoM Moderator

    Yes I did so, and I get permission denied.

    So is there a solution to create this directory within a pkg file. Because I have read that even if I use the root user in a pkg file, it will automaticly use adminispconfig instead.

  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Hi, the .pkg tool runs only as the admispconfig user, so it will not be possible to create this directory with the .pkg installer. We might enhance the installation system in later versions to run with root priveliges, but this will cause security risks the we have to check carefully.
  5. jnsc

    jnsc rotaredoM Moderator

    Sure, I understand your position. So instead of making a pkg file, i will make a little howto.


Share This Page