Delete directory with custom access?
How do I delete an empty directory with "Custom Access"? I get permission denied although I have read/write permission.
MacBook Pro 13″, macOS 10.13
How do I delete an empty directory with "Custom Access"? I get permission denied although I have read/write permission.
MacBook Pro 13″, macOS 10.13
Custom Access implies there is an Access Control List (ACL) attached. An ACL can override the POSIX permissions.
For most ACLs, you can override with admin authentication. Is your user admin capable? If so, and you don't get the authentication dialog, then there is some non-standard ACL attached.
Open Terminal, copy/paste this in, leave a space, then drag the directory into the Terminal window. Hit return.
ls -led
You should see at least two output lines. The second through end should start with a digit and : (e.g., 0:).
One common ACE is "group:everyone deny delete"
That will prevent deleting the directory, but you should be able to override it with authentication.
Custom Access implies there is an Access Control List (ACL) attached. An ACL can override the POSIX permissions.
For most ACLs, you can override with admin authentication. Is your user admin capable? If so, and you don't get the authentication dialog, then there is some non-standard ACL attached.
Open Terminal, copy/paste this in, leave a space, then drag the directory into the Terminal window. Hit return.
ls -led
You should see at least two output lines. The second through end should start with a digit and : (e.g., 0:).
One common ACE is "group:everyone deny delete"
That will prevent deleting the directory, but you should be able to override it with authentication.
Thank you for your prompt response. I had tried sudo rmdir with authentication without success. I subsequently changed the location of the empty directory and tried again successfully. I have no way to explain this; perhaps I was doing something wrong the first time.
I will save your response for use in case this happens again.
Delete directory with custom access?