0

I have a deploy pipeline which runs under the deployment user. Pipeline need to set up permissions for some directories for www-data group. So I wrote this command:

setfacl -R -dm g:www-data:rwx /var/www/portaldev-api.lurity.com/temp

This throws me an error:

setfacl: /var/www/portaldev-api.lurity.com/temp/cache: Operation not permitted

If I remove the X from rwx it works. But to delete files I also need x. Can somebody explain me what is the problem with x?

Thanks.

5
  • Filesystem of the cache directory?
    – Marco
    May 18, 2023 at 9:16
  • Yes temp/cache/... setfacl should set permissions for all new created files.
    – Čamo
    May 18, 2023 at 10:25
  • Which FILESYSTEM is used in the cache directory (ext3, xfs, fat, ntfs, btrfs, ...)?
    – Marco
    May 18, 2023 at 15:39
  • df -PTh . | awk '{print $2}' returns ext4 and stat -f -c %T . returns ext2/ext3
    – Čamo
    May 19, 2023 at 11:02
  • is it mounted with the option "noacl" ? see man 5 ext4
    – Marco
    May 20, 2023 at 9:28

0

You must log in to answer this question.

Browse other questions tagged .