ACL stands for access control list. ACLs extend permissions on files beyond the traditional user-group-others triple.
11
votes
7answers
4k views
What to use to backup files, preserving ACLs?
When using the tar utility to store files in backups one loses the extended ACLs.
Is there some commonly used and not hackish solution (like: create a script that will recrate the ACLs from scratch) ...
5
votes
2answers
655 views
What roles do DAC (file permissions), ACL and MAC (SELinux) play in Linux file security?
I need some clarification/confirmation/elaboration on the different roles DAC, ACL and MAC play in Linux file security.
After some research from the documentation, this is my understanding of the ...
5
votes
2answers
268 views
Mercurial (hg) not respecting default ACL settings
I'm trying to set fine grained access control to various mercurial repositories using ACL. When I push changes to repository any new files created under /myrepo/.hg/store/data do not have default ...
4
votes
1answer
85 views
Can not explain ACL behavior
So this is situation:
got server for web-developers. There are many developers. All developers + PHP + Apache belongs to www group. There is a development directory - development.
The goal is that ...
4
votes
1answer
230 views
ACL mask does not work as expected
If I copy a file with a base ACL of:
u::rw-,g::r--,o::r--
into a directory with a default ACL of:
u::rwx,g::r-x,g:users:rwx,m::rwx,o::r-x
I obtain a file with mask of m::r--. I would have ...
4
votes
1answer
225 views
Using ACL's over read only/remote filesystem
I would like to define local ACL's to be used over a remotely mounted filesystem.
The filesystem is mounted via autofs and sshfs FUSE.
The idea is that we could setup a jailed user on a jump server ...
3
votes
2answers
140 views
How do I create a hierarchy of UNIX groups as below?
I need to create a hierarchy of UNIX groups. Something like below:
A
|\
| \
B c
|\
D e
|\
f g
...where A, B and D are UNIX groups and c,e,f and g are UNIX accounts that are members of those ...
3
votes
1answer
62 views
ACL, ls, “permission denied” and a lot of questionmarks
I have two users, Alice and Bob. Bob should be allowed to list, ls, Alice's home directory. Alice also has a file in her home directory that Bob should also be allowed to read.
I run these commands ...
3
votes
1answer
516 views
copying device nodes
I'm trying to transfer a working Linux installation to a new larger disk, so I've attached the new disk on a USB port, partitioned it and created filesystems.
While copying all the files over I hit a ...
3
votes
2answers
82 views
Using setfacl to allow group members to write to any file in a directory
I'd like to use setfacl so that anyone in group 'app' can edit any file contained within /usr/local/users/app regardless of what the traditional UNIX permissions say. I have two users john and ben. I ...
3
votes
1answer
95 views
Change who is able to chmod
Is there a way to change who can chmod (change the permissions of) a particular file?
It is only the owner of the file (without sudo-ing it), if my experimentation has been correct?
But what I want ...
3
votes
1answer
357 views
How do I edit a file and preserve its access control list / SELinux security context?
I'm on CentOS 6.2, and have a file with the alternate access method character displayed as a dot.
ls -l myfile
-rwxr-x---. 1 me mygroup 172 Aug 13 10:03 myfile
^
This dot.
...
2
votes
2answers
502 views
HPUX setacl leaves uid behind
I have a shell script that I execute after uninstalling a web application. The script is meant to clean up permissions that were needed during the execution of the application.
find /opt/path -exec ...
2
votes
3answers
129 views
User with read access to /home
Pardon my ignorance but I can't seem to come up with a solution to this one.
I'd like to create a user that has read access to every user's home catalog located in /home.
Do I need acl's for this or ...
2
votes
1answer
378 views
OpenLDAP Centos 6
I am trying to set up some ACLs (starting off with a simple userpassword ACL) on a new OpenLdap deployment.
I am trying to get to grips with the new conf.d configuration format - but am struggling. ...
2
votes
2answers
126 views
setfacl incorrectly changes group permissions
To backup the "/home" directory tree of a server, I've created a 'backup' account and used setfacl to make the whole directory readable by it. My cron job runs this command as root each night:
...
2
votes
1answer
197 views
How to use Extended ACL's on AIX?
Using AIX (6.1) FTPD, a user needs to log in and it should only reach 2 directories (read/write) in the system, ex.:
/foo/sth1
and
/foo2/sth2
Besised the users home directory it shouldn't reach ...
2
votes
1answer
649 views
How do I make all current and future files in a directory readable by a certain group/user?
I have a "Drop Box" directory for students to submit assignments. Its permissions are set to "drwx-wx---" where all of the students belong to the group. This lets them write to but not read from the ...
2
votes
1answer
70 views
Get rights for specific user on file/dir
I'm searching for a command that essentially would do the following: check which rights a user has on a file/dir (including ACL) and return it.
E.g. say you have the following directory:
-rw-r--r-- ...
2
votes
0answers
321 views
“Operation not supported” for setfacl inside a python script [closed]
I've programmed a script using python which logs in as root on the host machine and executes some commands. Therefore it uses ssh. I want to setup acl. If I do following commands in the command line, ...
2
votes
1answer
180 views
Chown and the risk of corrupting the backup disk
I am about to modify the file ownership recursively in a filesystem that uses ACLs. Because it is my backup disk, I thought I'd solicit comments on the script before I run it.
#!/bin/bash
# Replace ...
1
vote
3answers
2k views
Howto set access control lists ACLs in OpenLDAP
I'm using the Debian Squeeze OpenLDAP. Where can I set ACLs? Isn't it possible to execute the access to directives with ldapmodify? There's no slapd.conf file in Debian, they use a slapd.d folder
1
vote
2answers
671 views
exim4 on debian: why does this ACL work when testing with -bh but not in actual use?
I've got local_acl_check_data to reject the typical spammer tactic of using the same address as From: and To:, but since some less-spammy sources, such as Yahoo Groups, do this, I'm using a whitelist ...
1
vote
1answer
37 views
Function of owning group versus ACL group permissions
Given the fact that we can give any number of groups rwx via POSIX ACL's is there any special privileges given to the owning group? For example, we can set any number of users with ACL's but only the ...
1
vote
1answer
81 views
Why are directories created with permissions 2070 and files with 060 in a directory with setgid bit?
I have the following directory:
$ ll -d neptune
drwxrws---+ 5 beamin psych 4096 Mar 7 16:18 neptune
$ getfacl neptune
# file: neptune
# owner: beamin
# group: psych
# flags: -s-
user::rwx
...
1
vote
1answer
72 views
Allowing user access to mailman python files from root?
I just got my first managed VPS, and am taking a crash course in administering users. I normally do most things on my local computer as root. It is running centos-5-x86_64.
What I'm trying to do is ...
1
vote
0answers
516 views
Windows domain account can't create files via samba share, but can do this in linux shell, why?
I'm migrating tomcat server from windows to linux (CentOS 6.3 64bit), and want to use samba to share tomcat directory to technical department staffs (windows domain users) with read+write rights.
...