Capifony setfacl permissions: “Operation not permitted”

前端 未结 3 784
旧时难觅i
旧时难觅i 2021-01-20 18:20

I have a user didongo (user & group didongo), and the nginx server (user & group www-data). I\'ve setup Capifony to login as <

相关标签:
3条回答
  • 2021-01-20 18:46

    The problem here, is that prod.log file was created automatically so its owner is www-data. Capifony runs deployment as didongo user. One user can't do setfacl to the other owner's file.

    So just add didongo to the group www-data: sudo adduser didongo www-data

    0 讨论(0)
  • 2021-01-20 18:57

    Try this once with sudo and after you will no need to use sudo

    sudo sh -c 'setfacl -R -m u:didongo:rwX -m u:www-data:rwX /home/didongo/staging/shared/app/logs'
    

    Because you need to set x+ permissions, read this What is trailing Plus indicates

    0 讨论(0)
  • 2021-01-20 19:03

    Finally I managed this creating different PHP-FPM pools with the same permissions as the user. This way I can have different users separated from each other. And as a bonus deploy.rb is simplified.

    0 讨论(0)
提交回复
热议问题