I am a second "Administrator" user on a Mac OS. I am in the admin group, and am trying to use homebrew, which was installed by the first user.
I have made sure everything in /usr/local/* is writable by admin, i.e. sudo chmod -R g+w /usr/local/*.
When trying to run brew install a few different packages, I get a few of these errors
cp: setattrlist: /usr/local/Cellar/[email protected]/.: Permission denied
cp: chmod: /usr/local/Cellar/[email protected]/.: Operation not permitted
Error: Failure while executing; `cp -pR /private/tmp/d20210523-60782-14t7vu8/[email protected]/. /usr/local/Cellar/[email protected]` exited with 1. Here's the output:
cp: setattrlist: /usr/local/Cellar/[email protected]/.: Permission denied
cp: chmod: /usr/local/Cellar/[email protected]/.: Operation not permitted
But upon inspecting, the folder has the permissions I expected
:; ls -al /usr/local/Cellar/icu4c/
total 0
drwxrwxr-x 3 user1 admin 96 May 23 14:06 .
drwxrwxr-x 73 user1 admin 2336 May 23 14:05 ..
drwxrwxr-x 12 user1 admin 384 May 23 14:06 67.1
Does anyone know what I might be missing here?
ls -laed "/usr/local/Cellar/[email protected]"? The-ewill display ACL information that may be preventing you from runningbrew install.-edid not display any additional information from what I could tellid?sudo chown -R $(whoami) /usr/local/Cellar/