Questions tagged [setfacl]
39 questions
3
votes
1 answer
ls throws errors when trying to access directory guarded with ACL
I have setup a directory and some files with setfacl.
jobq@workstation:~/Pool$ getfacl /etc/jobq
getfacl: Removing leading '/' from absolute path names
# file: etc/jobq
# owner: root
# group:…
infinitezero
- 187
- 1
- 7
3
votes
0 answers
Setfacl set permissions for future files and directories recursively
I have a directory a directory with permissions as below:
drwxrwxr-x 5 myuser mygroup 4.0K Mar 12 19:54 log
I have an application which regularly creates directories inside the folder and writes log files into those directories. Id want those…
letsc
- 131
- 5
3
votes
0 answers
Using setfacl to set group=rwx, other=r-- of directory works using git and making subdirectories, but not when I create a text file?
I have a directory:
/usr/local/test/
And I have changed the group of the test dir to bfx:
$ sudo chgrp bfx /usr/local/test/
And used a stickybit to make the group remain the same in all files/subdirs. I have also taken execute permission off…
trouselife
- 153
- 5
2
votes
0 answers
How to set correct ACL to website users?
I'm trying to set correct ACL to all folders used on my shared server. That way other users will be unable to read each other files. What I did so far is next:
Owner of each website folder is owned by separate user and group:
ls -l crm
drwxr-x--- 3…
user134969
- 263
- 2
- 7
2
votes
4 answers
facl, setfacl, directory share, why does cp put the original file permissions into facl mask? Shouldn't that be cp -p behavior?
The users on this system are careful and have their umasks set to the very private 0077. However, the users would like to have group specific directories, where files may be copied so as to explicitly share them just among other group members.…
user314968
2
votes
1 answer
Grant access for user to folder (even files created after permission is granted)
I have created a backup-user (let's just call it jeremy) on an Ubuntu-server.
Then I've created a backup-dir, containing files from several different servers:
/backup
|
|--server1
| |--daily_backup
| |--weekly_backup
|
…
Zeth
- 155
- 6
2
votes
1 answer
Nfs4_setfacl reports error on files of mounted folder
I mounted an nfsv4 folder (both client and server are CentOS 7.4)
via command
$ sudo mount -t nfs -o v4.0,sec=krb5 ark-centos7-ker.qa.arkivio.com:/export/nfs1 /nfs4-mnt-dir
created a file via: touch 11, then set file's ACL get failed with…
xq10907
- 95
- 3
- 10
1
vote
1 answer
How to setfacl on a directory and all its parents?
Let's say we have the following directory structure
a
b1
c1
c2
b2
c3
c4
And I want to use setfacl to give a user frank access to c1, I can do something like
setfacl -m u:frank:rX a/b1/c1
However this doesn't give him access to…
DrizzleX
- 125
- 3
1
vote
1 answer
Reverse setfacl without sudo or root
I have used command sudo setfacl -R -m u:ubuntu:rwx ..
Unfortunately, by mistake on root directory, stopped it in a middle, but to late.
I hoped to revere it by using sudo setfacl -bR / however now I believe I lost sudo…
Leszek J.
- 11
- 3
1
vote
0 answers
Permission Error
I have installed bash shell in windows 10 to run linux commands. I am trying to execute a script which gives error "You do not have permission to edit". I have executed command "chmod 777 script4". Still the script does not execute. Now I am trying…
harpreet
- 5
- 1
- 2
1
vote
1 answer
setfacl -m works but setfacl -x does not work
I have the following code in a bash file:
sudo setfacl -m g:jobq:x /usr/local/sbin/jobq_submit
sudo setfacl -m g:jobq:x /usr/local/sbin/jobq_server
sudo setfacl -m g:jobq:x /usr/local/sbin/jobq_server_stop
sudo setfacl -m g:jobq:x…
infinitezero
- 187
- 1
- 7
1
vote
0 answers
Create a folder which can be written to but not read
I've been going over content I previously used in Uni to learn Linux, as I have gotten rusty and thought a refresher would be helpful. The content is hosted on a site similiar to Hack the Box which is able to deploy linux boxes and by clicking a…
LackyWacky
- 11
- 1
1
vote
0 answers
Setting ACLs for directories that don't exist (yet)
Can I set ACLs for directories which don't exist yet, but follow a pattern?
I have a directory /opt/myapp/var where all sub-directories and files should be owned by mygroup and should be group writable. This is no problem. During installation of…
Stewart
- 12,628
- 1
- 37
- 80
1
vote
1 answer
How do I set different default permissions for files vs folders using setfacl?
I have a folder /stuff that is owned by root:stuff with setgid set so all new folders' have group set to stuff.
I want it so:
New files have rw-rw----:
User: read and write
Group: read and write
Other: none
New folders have rwxrwx---:
User:…
IMTheNachoMan
- 355
- 1
- 6
- 17
1
vote
1 answer
How do I jail a user in /var/www/html?
I would like to restrict a user (user sftp-user, group webgroup) to sftp access for the /var/www/html directory in CentOS 8. They should have read and write permissions so they can make changes to website files.
I am able to successfully jail the…
location
- 53
- 6