How to create a shell users whose home dir is the website dir

Discussion in 'General' started by gbe, Jan 11, 2016.

  1. gbe

    gbe Member

    Hi all,
    (Running: 3.0.5.4p8 on Ubuntu 14.04).
    I have a deployment system that requires that the shell user's home dir is the website dir, ie: /var/www/clients/clientX/webY.
    In the past this has been easy enough: simply setting "Chroot Shell" to "None" when creating the shell user would set the correct home dir.
    But in 3.0.5.4p8, that setting seems to make no difference - a separate "home/" folder is still created within the website dir.
    How can I get the old behaviour back, in order to set the right home dir?
    Many thanks,
    Geoff.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can't at the moment, we had to change the behaviour has a lot of scripts fail when they can't write into the home directory of a user and /var/www/clients/clientX/webY is not writable. Maybe we can offer a option in future to make this configurable. Currently you can only change the home dir on the shell in /etc/passwd directly.
     
  3. gbe

    gbe Member

    Thank you @till.
    If I make the change in /etc/passwd directly, will that get lost in the next resync operation?
    Thanks.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    I guess it might be kept, but you should try to be sure.
     

Share This Page