Questions tagged [acl]

The ACL is a security and access component of Operating Systems. It contains a set of entries that determine who and what has access to a specified physical or logical system object.

The ACL is a security and access component of Operating Systems. UNIX, OSX, Windows, and Linux use ACLs.

An access control list (ACL) is a list of entries that determine access to a system object. The entries specifies the access rights allowed, denied, or audited for a specified user account or process. The system object may include a file system file, system process or a memory data structure or other data object, physical or logical.

279 questions
97
votes
3 answers

Give write permissions to multiple users on a folder in Ubuntu

There is a folder that is owned by user tomcat6: drwxr-xr-x 2 tomcat6 tomcat6 69632 2011-05-06 03:43 document I want to allow another user (ruser) write permissions on document folder. The two users (tomcat6 and ruser) does not belong to same…
TheVillageIdiot
  • 1,357
  • 3
  • 17
  • 23
40
votes
2 answers

What is the Mac terminal command to remove ACL?

I'm trying to find the terminal command on a Mac to remove ACL to fix user permissions on a folder that gives an error code when I try to copy it (error code -41).
Teresa
  • 401
  • 1
  • 4
  • 3
26
votes
3 answers

Copy security permissions of one file to another

I would like to replicate the permissions of a file to another. I do not want to copy the data, only the permissions. For example, I created a new file and want it to have the same permissions as another file that already existed.
TaoTao
  • 363
  • 1
  • 3
  • 4
25
votes
11 answers

Reset default ACLs for C:\Program Files\WindowsApps

I had to take ownership of the special folder C:\Program Files\WindowsApps to fix a problem with icons. The issue is now resolved, so I'd like to reset the permissions to the way they were before I took ownership of the folder. I reverted NT…
Louis Waweru
  • 23,945
  • 39
  • 132
  • 198
19
votes
1 answer

users not found in /etc/passwd

I login to a linux box with username user1 and my home folder is in /home. There is another user named user2 that has its home directory in /opt/data/folder. If I want to check the list of users I inspect the file /etc/passwd in this simple way grep…
Abruzzo Forte e Gentile
  • 1,725
  • 5
  • 17
  • 21
18
votes
2 answers

How can I list permissions of every component in a file path?

Sometimes it is necessary to determine on which directory in a path access rights are limited. Here is an example: $ ls /sys/kernel/debug/usb/devices ls: cannot access /sys/kernel/debug/usb/devices: Permission denied $ cat…
18
votes
5 answers

find files with ACLs set

How can I find all files with some extended ACLs set, i.e. those with a little + at the end of the permission flags shown by ls -l. I could not find a corresponding flag for find. My naive approach would be a find combined with ls -l and a grep.…
17
votes
3 answers

How do I remove any SELinux context or ACL?

HI, I have some files, that I'd like to remove the SELinux context or ACLs from (denoted by a '.' or a '+' respectively when using ls -alZ). I don't have too much time on my hands to read on the , etc on how to use chcon etc., so I just want to…
polemon
  • 2,831
  • 6
  • 33
  • 45
17
votes
3 answers

Setting differing ACLs on directories and files

I want to set up default permissions for a file share so that everyone can rwx all of the directories and so that all newly created files are rw. Everyone who is accessing this share is in the same group, so this isn't a concern. I have looked at…
durandal
  • 173
  • 1
  • 1
  • 4
15
votes
1 answer

Leave ACL handling to Windows with Cygwin rsync

I'm running an rsync command, copying my files from a server to my Windows machine like: rsync -rt --partial-dir=".rsync" --del rsync://server/a/ a/ Whenever this command creates a directory, it tends to create a directory with crazy…
palswim
  • 3,451
  • 10
  • 46
  • 65
12
votes
3 answers

Where does the file owner on Windows matter, seeing that there are ACLs?

Coming from a Linux background, I'm used to a file having an owner, and a owning group. Access permissions can be set separately for owner, group, and others, and that's it. Now on (NT-based) Windows, it's a bit different, because Windows uses ACLs.…
sleske
  • 22,652
  • 10
  • 69
  • 93
12
votes
2 answers

NTFS Permissions - SYSTEM

Are there any possible side effects to removing permissions for SYSTEM on an NTFS directory? It is a non-system (user documents) folder. I know the obvious (i.e., that SYSTEM will no longer to be able to access it, duh :-) ). My question is, are…
user73728
11
votes
2 answers

Change registry permissions via command line (batch file)

I found an awesome Reg Hack for Windows 7, that renames the 'Computer' icon to something like %username% on %computername%. Unfortunately, in the tutorial, it says to change permissions of the registry key. I would like to change this from the…
Canadian Luke
  • 24,199
  • 39
  • 117
  • 171
11
votes
3 answers

Why are file permissions retained when moving files within the same volume?

Ocassionally, we have the problem that a file has permissions different from the folder where it's in. Now I found out that there's a KB article explaining the reason behind this: By default, an object inherits permissions from its parent object, …
VVS
  • 273
  • 1
  • 2
  • 9
11
votes
2 answers

How do I remove permission to specific user using setfacl

I just executed the following command setfacl -m user:userXXX:r /home/userYYY/private/ now I see $ ll /home/userYYY/private/ total 32 drwx------+ 5 userYYY quant 512 Sep 5 03:26 ./ drwxr-xr-x …
statquant
  • 245
  • 1
  • 2
  • 9
1
2 3
18 19