Hello, and issue with ssh users

Discussion in 'General' started by betilebra85, Nov 9, 2020.

  1. betilebra85

    betilebra85 New Member

    Hi,

    I am having a permissions issue with ispconfig and ssh users. I have a server with a number of domains and websites configured for them. I also have to give access to one of these to an external web designer.

    I chose to give him ssh/sftp access, so I created a chrooted ssh user for the website. He proceeded to use this to upload files, but naturally, these are uploaded with the user id of the ssh user, not the original website user, i.e. the website permissions and especially write access to a few folders is not working without me manually intervening and resetting ownership.

    What is the best practice solution here? For now, I've set the user/group sticky bits on all directories inside web/*, but is there a better way that I don't see?
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Set umask for that ssh user to allow read write for group. The ssh user and the website user have the same group. The sticky group bit like you already did is needed for directories.
     

Share This Page