Allowing and restricting which users can perform what operations of particular files
Questions tagged [permission]
1175 questions
155
votes
10 answers
How can I copy files from my Mac to PC via Microsoft Remote Desktop?
I installed Microsoft's Remote Desktop and connected to a PC. How can I share files between my Mac and PC?
When I use RDP on Windows, I can simply add a file to the clipboard and paste it inside the RDP window. The same thing doesn't seem to work in…
Senseful
- 23,371
- 78
- 181
- 281
116
votes
12 answers
How to use pip after the OS X El Capitan upgrade?
After the El Capitan update, I am unable to run pip install. The error I get is that the "operation is not permitted" when pip tries to create new folders while installing.
creating /System/Library/Frameworks/Python.framework/Versions/2.7/share
…
web_ninja
- 1,263
- 2
- 9
- 5
99
votes
7 answers
Are my permissions for /usr/local/ correct?
I’m using HomeBrew for my port needs (seems a bit “cleaner” than MacPorts).
I can install without sudoing (which is great), but the man linking step seems to require it (/usr/local/share/man/man3 is owned by root).
A guide I found suggests I…
Agos
- 3,524
- 5
- 25
- 28
82
votes
5 answers
Homebrew permissions & multiple users needing to brew update
I'm using Homebrew to manage package installs on Lion (Lion Server actually but this shouldn't matter).
Homebrew was installed under one user. Now a different user would like to add a package and Homebrew isn't happy:
$ brew update
fatal: Unable to…
Meltemi
- 1,836
- 3
- 22
- 26
77
votes
5 answers
What does "@" signify in unix file permissions?
I have a file with the following permissions on my MacBook Pro:
-rwxr-xr-x@ 1 root wheel 101K Feb 29 17:09 apachectl
What does the @ stand for? I can't execute the file and this is the only thing that's standing out to me. How can I get rid of…
VinnyD
- 1,203
- 2
- 11
- 6
69
votes
9 answers
File can't be moved by root on OS X
I tried to move a few files to a subfolder on OS X. One refused to move. It said Operation not permitted. I tried again as root:
$ sudo mv file subfolder/
mv: rename file to subfolder/file: Operation not permitted
$ sudo mv file filex
mv: rename…
eje211
- 833
- 1
- 6
- 8
68
votes
2 answers
What is AEServer and why is it requesting macOS Accessibility permissions?
What is AEServer in the macOS Accessibility permissions panel?
System Preferences > Security & Privacy > Privacy > Accessibility > AEServer
Why is AEServer requesting to control my computer via accessibility APIs?
Should Accessibility permission be…
pkamb
- 7,183
- 9
- 60
- 99
55
votes
2 answers
allow sudo to another user without password
I want to be able to 'su' to a specific user, allowing me to run any command without a password being entered.
For example:
If my login were user1 and the user I want to 'su' to is user2:
I would use the command:
su - user2
but then it prompts me…
zio
- 884
- 3
- 8
- 14
54
votes
5 answers
Why am I getting a "dubious ownership of file" error when Launch Agent runs my .plist file?
I have a Launch Agent configured to run a .plist file for example: /Library/LaunchAgent/foo.plist. Inside this .plist, it is set to run during LoginWindow and Aqua.
When I attempt to launch my computer and get to the login screen, this plist should…
Senseful
- 23,371
- 78
- 181
- 281
53
votes
2 answers
Cannot ls ~/.Trash in the Terminal in Catalina (operation not permitted)
Ever since buying a new Mac, which has forced me to upgrade to Catalina, I cannot view the Trash folder in the Terminal. ls ~/.Trash just gives ls: .Trash: Operation not permitted. So does sudo ls ~/.Trash. According to ls -al ~, the permissions for…
asmeurer
- 1,915
- 6
- 18
- 36
53
votes
6 answers
How To Make files in `/usr/local` Writable For Homebrew?
I've been trying to get homebrew working nicely, but it appears everything inside /usr/local isn't writable, and everything falls over.
It keeps telling me to recursively chown /usr/local, and I tried that. Operation denied, so I sudo'd it. It…
Tigt
- 653
- 1
- 5
- 11
39
votes
2 answers
Permissions for new files in shared directory
We just got a new iMac are using the /Users/Shared directory to store media assets (pictures, audio, video) that we want accessible to all users on the machine. After copying over all the files initially, we set the desired permissions and then…
Daniel Standage
- 537
- 1
- 4
- 10
37
votes
3 answers
Understanding the 'staff' user group
It's known that all users are members of the 'staff' group. If you setup a standard user and create any file, a list of that file in the terminal with 'ls -la' shows the user group to be 'staff'.
Using the dscacheutil command, we can see information…
TheDarkKnight
- 637
- 1
- 8
- 14
31
votes
2 answers
Dropbox asking for permissions to wrong folder after changing account name
I just got a new macbook and is now installing apps to it. After setting up Dropbox and everything else, I decided that I wanted to change the account name (which was previously "mac") to my name. Everything worked fine, until I tried to open…
huong
- 413
- 1
- 4
- 7
30
votes
11 answers
How to fix 403 in Mac OS X built-in Apache?
I'm trying to set a local environment on my new MacBook Air 13": built-in Apache with my own DocumentRoot, PHP, and MySQL. I usually update /etc/hosts just to run my local websites with a pretty permalink: local/example. For references, I usually…
João
- 925
- 10
- 19
- 31