Shell User how to set home directory

Discussion in 'Installation/Configuration' started by craigfanman, Apr 24, 2020.

  1. craigfanman

    craigfanman Member

    so when you create a shell user the default base dir is eg
    /var/www/clients/client9095/web9614
    when users login they have to go up a few times till they can see the root and then get to /web
    i wanted to make the default dir /web so I changed this to
    /var/www/clients/client9095/web9614/web
    but that has deleted the whole website

    any tips on how I should be doing this ?
    thanks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The shell users must have their own home directory which is not the web directory.
     
  3. craigfanman

    craigfanman Member

    Ok I see thanks. so is there anyway for me to specify the default directory when people login through SFTP ?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    I don't think so. What you might try is to add a symlink with the name 'web' which points to the web dir of the site inside the home directory of the shell user. This can probably be automated with a small ispconfig plugin which would consist just of a few lines of code that gets executed after a shell user is created.
     

Share This Page