Questions tagged [setfacl]

setfacl(1) is a command-line utility to set ACL (Access Control List) information on files, part of a withdrawn POSIX draft from 1997

setfacl(1), short from Set File ACL, is a command-line utility in some modern UNIX systems that lets the user set access control information on the specified files.

It was part of an abandoned and withdrawn IEEE Standards Draft from 1997, originally meant to be part of .

35 questions
0
votes
1 answer

set the permissions on all the files and folders within a directory (CentOS 7.0 )

I kind of new to Linux/Centos world, is there any way to set the permissions on all the files and folders within a directory. I know chmod 777 will set permissions on the directory, but if it already has contents, I need to know how to set that too.…
0
votes
1 answer

Linux file ACLs are not kept using Docker for new files/containers created by Docker daemon

I am trying to grant read permissions to group grafana-cloud to files under /var/lib/docker/containers: #> ls /var/lib/docker/containers/ | head -n1 0515ccad974eb0e4577c7b35a0c517ab889db95d996e6188e9d0377cfa2265d4 #> setfacl -Rdm…
0
votes
1 answer

su -u www-data cat ... not working as expected

For a project I'm working on, I need the www-data user to be able to read /etc/openvpn/easy-rsa/pki/index.txt The permissions see fine for this: -rw-r-----+ 1 root www-data 1050 Dec 7 20:43 index.txt That wasn't working so I added ACL. getfacl…
Chemdream
  • 93
  • 1
  • 9
0
votes
1 answer

How to run setfacl inside a Docker Container

I have a bash file which uses ACLs to give permission to certain users. The bash file looks like sudo setfacl -m u:ChiefCommander:rwx /home/Army$i When i am building a Docker Container using this file, it says line 6 : setfacl : command not…
TaDev
  • 3
  • 2
-1
votes
1 answer

setting umask for a directory so that all directories, executable file(.sh , .cmd, .bat) are 750 and regular file 640

need to create and change existing file and directory such that all directories and executable files(*.sh, *.bat, *.cmd ..) are 750 and regular file are 640 . I need to this in shell and python both. I like to set umask to 027 while default is 022…
1 2
3