Allowing and restricting which users can perform what operations of particular files

learn more… | top users | synonyms (1)

67
votes
5answers
73k views

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 ...
63
votes
10answers
59k views

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/...
53
votes
5answers
28k views

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 ...
49
votes
5answers
44k views

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 ...
48
votes
9answers
94k views

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 ...
25
votes
4answers
15k views

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 ...
23
votes
2answers
71k views

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 ...
21
votes
4answers
25k views

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 ...
21
votes
2answers
22k views

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 ...
19
votes
1answer
20k views

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. ...
14
votes
3answers
2k views

In OS X, is it better to put apps in /Applications or in ~/Applications?

I've noticed that pkg installers and obviously apps installed from the App Store) put apps in the /Applications file, yet Steam usually puts them in ~/Applications. Both work, and both are writable by ...
14
votes
4answers
55k views

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 ...
13
votes
3answers
8k views

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 ...
11
votes
9answers
24k views

Keychain says “Access to this item is restricted” after upgrading to Lion

I recently upgraded to Lion and since then I haven't been able to use Keychain to look at my stored passwords. When I click on the checkbox to show them it prompts me for my master password, then ...
11
votes
6answers
4k views

How to figure out what is causing the ownership of /usr/local to change from my-username to root

I use homebrew as a package manager for certain web development app. To keep brew up-to-date I run update brew every couple of days and also run brew doctor. Usually, this is fine and brew tells me I'...
11
votes
4answers
18k views

Run sudo From Non-Admin Account

Okay, so I'm gearing up to get a new machine so I'm looking at how I can organise things better. Now, currently I use an admin account as my main login account, but I know that that's probably not ...
10
votes
2answers
15k views

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'. ...
10
votes
1answer
516 views

I know how to repair disk permissions. But… Who broke them?

One of the common Mac troubleshooting steps everyone always seems encouraged to try first is to "repair disk permissions" in Disk Utility. This process usually finds random odd problems, fixes them, ...
9
votes
5answers
757 views

Cannot open Terminal on mac (“Not allowed to use” error message)

I cannot open Terminal at all because of this error message. (Probably the rudest error message I have ever seen on a computer.) This mac was originally a school computer and the permission to use ...
9
votes
1answer
21k views

Can't write to /usr/lib

I upgraded to OS X El Capitan and tried to install a new app (MPLAB X from Microchip) but I got an error because it couldn't copy a library to /usr/lib even when it asked for root password. I tried to ...
9
votes
4answers
18k views

How to resolve permissions errors on OS X Lion after Homebrew install

I just upgraded from Snow Leopard to Lion and am trying to get Homebrew installed. However after the installation, I run brew doctor per the installation instructions, and see a series of errors ...
8
votes
2answers
197 views

Do iPhone apps have permission to make calls without user interaction?

I was reading about a missed call scam just now where the user gets charged even if they don't call the number back. It occurred to me that a malicious iPhone app could make calls to premium numbers ...
8
votes
2answers
2k views

How to create a pseudo-guest account in Lion with FileVault 2?

The guest account always had very limited permissions, unfortunately since activating FileVault on Lion it's deactivated by default. (More about it here: Unable to create Guest Account after enabling ...
8
votes
1answer
2k views

How to get Finder in Lion to set group permissions to read/write by default?

To have group permissions set to read/write by default in Snow Leopard and Leopard, I used /etc/launchd-user.conf to set the umask to 002. This still works in Lion in every app except the Finder. ...
7
votes
2answers
15k views

How to move the Downloads folder (in Mountain Lion) to another disc

I want the "Downloads" folder not on the system drive but on my second internal drive. In Lion I just deleted the "Downloads" folder and replace it with an alias with the same name (pointing to the ...
7
votes
2answers
4k views

OSX Mavericks Root User

I know it is possible to enable root user and then logging in as the root user. But is it possible to get root access with your admin account in OSX Mavericks? It is kinda annoying to always type the ...
7
votes
1answer
478 views

Why are Mac files able to have multiple owners?

Regarding Unix file permissions, which Macs use, why are Mac files in particular able to have multiple owners? For instance, you can view the "Get info" panel of a file, and under the Permissions ...
6
votes
6answers
34k views

How Should I Correct the Owners and Permissions in an OS X User Folder?

My issue is that I've seriously busted all of the owners and permissions on my user folder and subfolders and it's causing lots of issues using lots of applications. The initial cause was that I had ...
6
votes
8answers
25k views

Sharing a single Dropbox between multiple accounts on one Mac - possible?

This seems like it should be easy, but... My partner and I use a single Dropbox.com account to keep all of our joint projects synced up between our computers - and this has been working great for ...
6
votes
3answers
23k views

Can't save files in my own directory due to insane permission error

I was working on my mac and saved a file. Continued to work on the file. One hour later, when I tried to save that file, I saw the message "The document could not be saved. You don't have permission". ...
6
votes
2answers
2k views

Can't save files in some applications

I some application, such as Xcode, Pages and Pixelmator 2, when I save, I get an error about not having the permissions to save the file: "The document “[document name]” could not be saved. You don’t ...
6
votes
1answer
468 views

Can the default permissions on /dev/disk* be changed?

Is it possibile to change default permissions /dev/disk*? In Linux this is done in the udev configuration files; which is the equivalent on OS X? I'd like to give group write permissions so members ...
5
votes
5answers
4k views

OSX Bash for loop - issues with spaces in folder names?

I'm getting a bit confused on how to handle spaces in path names when returned in a for loop. Rationale: I'm cleaning up the permissions on folders and files that I copy over from Windows. Most of ...
5
votes
2answers
920 views

Setup up Kaleidoscope as external diff tool in IntelliJ?

I want to change the diff tool to an external one in IntelliJ Idea (basically in Android Studio). I get this message: Can"t Launch Diff Tool Cannot run program "/Applications/Kaleidoscope.app": ...
5
votes
4answers
13k views

How do I repair permissions of a specific directory?

I want to repair permissions of a user defined directory along with it's subdirectories. How can I do this? So far, I've looked for options in finder and tried to drag the folder into Disk Utility. ...
5
votes
4answers
12k views

Cannot edit /etc/fstab to let NTFS drives write

I have Mac Os X 10.9 Mavericks. I want to write to NTFS drives. I followed the instructions here. The following command was not allowed to run: $ sudo echo "UUID=7575C85E-F6F7-4ABD-B7FB-6180B795DD81 ...
5
votes
3answers
3k views

No right to open file once copied on the desktop

I'm new to Mac, so I may not have the correct vocabulary. We have a Mac 10.5.x configured to share files with AFP and SMB. We have 4 other Mac as clients, various versions between 10.5 and 10.6. ...
5
votes
3answers
89k views

How do I unlock a .plist file so that I can change it?

I want to edit Info.plist for TextEdit. (Here's why.) I'm running OS 10.7, and I do have Xcode installed. But every time I try to edit the file, it's locked and I can't save my changes. If I try to ...
5
votes
3answers
605 views

Is there a command like namei for OS X?

I'm sifting through some incorrect permission issues and discovered the namei command for Linux. Homebrew doesn't currently have a Mac port. namei - follow a pathname until a terminal point is ...
5
votes
2answers
13k views

Excel 2011 Opens Spreadsheet As Read-Only

I have a spreadsheet (.xlsx) file that, when I open it on my MBP running Excel 2011 14.3.6, I get a pop-up telling me the file is locked and can only be opened in read-only mode. About a minute later,...
5
votes
1answer
520 views

How to allow a group to access a folder?

I want to allow the _www group to write to a folder. I clicked on the folder to go to the "Get Info". At the bottom there is a "Sharing & Permissions" section with a "+" to add users. However it ...
5
votes
2answers
795 views

atd stopped working on OS X 10.10.3

I'm using OS X Yosemite, just updated to 10.10.3 and the at command and related (atq, atrm etc) have stopped working. Has atd been disabled in the latest 10.10.3? If so how do I investigate and ...
5
votes
1answer
7k views

Best practice for installing applications for multiple users?

I have a MBP with Lion (10.7.3) on it and there are two user accounts on it, I use them to seperate work and private stuff, but when I install apps, I generally want to use/upgrade/remove them using ...
4
votes
3answers
15k views

Whenever I try to delete a file in Finder I get “Finder wants to make changes. Type your password to allow this.”

I can't figure out why Finder isn't letting me delete files under my home directory without providing my password. Here's a listing of some files on my desktop: ~/Desktop steve 526$ ls -l@ flower* -...
4
votes
2answers
2k views

Mysterious “Staff” account on my school laptop

There's a account named staff, which I discovered had read permission on my home folder, when I did Get Info on it for an unrelated purpose. So, naturally, I went into System Preferences, and looked ...
4
votes
4answers
14k views

Photoshop on mac “could not save [file] because write access was not granted”

I've been seeing this error a lot lately: Could not save [file] because write access was not granted I've checked all the standard reasons why permission to save a file might be denied: The ...
4
votes
1answer
7k views

Problems saving changes to /etc/sshd_config

I am trying to setup my mac mini as a secure git server, I'm following this very helpful blog post, http://www.tomdalling.com/blog/software-processes/how-to-set-up-a-secure-git-server-at-home-osx. ...
4
votes
4answers
14k views

Use Apple's Server Admin Tools to Force Inherit Permissions

We have our work drive (let's call it Drive2014) and we have our archive drive (Drive2013). Every file on Drive2013 is read-only and must remain that way. When I drag a file from Drive2013 to ...
4
votes
3answers
28k views

Can't change folder permissions

I'm running Mountain Lion and I have a folder in ~/sites that has a red icon on the folder and I can't open it because 'access is denied'. What I've tried: Get Info > unlock with admin password, ...
4
votes
1answer
4k views

Folder in root greyed out in Finder but accessible in Terminal

I've just migrated from an old MBP to a new one. I had a folder Transmachina in the root in which I keep a large SVN working copy. I just copied this over with cp -R but on the new machine this folder ...