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

learn more… | top users | synonyms (1)

52
votes
5answers
48k 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 ...
45
votes
5answers
41k 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 ...
40
votes
5answers
20k 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 ...
30
votes
9answers
63k 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 ...
22
votes
3answers
9k 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 ...
15
votes
2answers
45k 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 ...
15
votes
2answers
15k 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 ...
12
votes
4answers
1k views

In OS X Mavericks/Yosemite, 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 ...
12
votes
1answer
13k 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. ...
11
votes
4answers
38k 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 ...
10
votes
1answer
415 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
1answer
4k 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 ...
9
votes
4answers
17k 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
8answers
16k 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 ...
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
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
4answers
10k 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 ...
7
votes
1answer
371 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
28k 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
2answers
12k 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 ...
6
votes
2answers
6k 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'. ...
6
votes
2answers
341 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 ...
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
289 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
3k 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
4answers
10k 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
3answers
2k 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
1answer
494 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
15k 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". ...
5
votes
2answers
607 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
5k 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
2answers
724 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": ...
4
votes
1answer
6k 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
2answers
50k 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 ...
4
votes
4answers
9k 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
4answers
9k 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 ...
4
votes
1answer
59 views

Limit list of apps user can launch?

In Windows it is possible to configure system so, that user runs only some list of applications (for example Word, Excel, PowerPoint...) and user can't launch anything else. How can I configure OS X ...
4
votes
2answers
924 views

Mysterious permission denied

I am trying to save a file but get the error message saying file could not be saved. This happens only after the first time I save a new file. That means, if I create a new file saving works. BUt if I ...
4
votes
2answers
9k 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 ...
4
votes
1answer
3k views

What are the default permissions on the Applications folder in OS X supposed to be?

I was trying to run VirtualBox on OS X when I got the error: Failed to open a session for the virtual machine tinyXP. Failed to load VMMR0.r0 (VERR_SUPLIB_WORLD_WRITABLE). Unknown error creating VM ...
4
votes
2answers
6k views

Resetting user permissions to their default mode

I'm on Mac OS X 10.7.2 with a serious permissions issue that affects most items in my Documents folder, which now require my password for modifications like renaming. The concerned files and folders ...
4
votes
1answer
283 views

Limiting a standard user to use 50 GB of the hard drive

I have added a standard user for my brother on my Mac Mini, and I would like to limit the amount of space he can use on my hard drive, but I can't see where I can set this kind of restrictions. I ...
4
votes
5answers
2k views

Mavericks - Tell application “Preview” open PDF - strange permission issue

I have recently moved a large research collection of PDF files, from a Snow Leopard 10.6.8 TimeMachine disk, to my new rMBP (to the internal flash storage). I did this manually, not through the ...
4
votes
1answer
494 views

Gray folder with circle next to it

I've got the strangest problem with some of my folders on an external drive. They folders in the root of the drive show up, but they are grayed out and I can't click them. However if I change viewing ...
4
votes
5answers
2k views

Can't install Homebrew on Mac OS X Lion

I followed the simple instructions on Homebrew's homepage: Paste this at a terminal prompt: /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)" But I get the following permission ...
4
votes
1answer
6k views

OS X Yosemite Hard Disk Errors even after Repairing them

Basically, I do a lot of C programming (for class) so I use gcc a lot on my mac. Recently since two days, whenever I ran it, the entire computer is getting frozen, and a force restart is necessary to ...
4
votes
1answer
1k views

Changing XAMPP directory/file permissions

On my old Windows setup I used a symbolic link to store my htdocs folder in my Skydrive folder and still work with XAMPP. I've just bought a MacBook and trying to accomplish the same thing but seem to ...
3
votes
3answers
5k views

Permissions of /Users keep changing back to drwxrwxrwx

I use the Disk Utility to repair it. But the permissions change back after reboot. Permissions differ on “private/etc/aliases”; should be lrwxr-xr-x ; they are -rwxr-xr-x . Permissions differ ...
3
votes
2answers
4k views

How can I restore file permissions to get my Mac booting again?

Out of curiosity, I set the permissions on my hard drive from "everyone" to "no access". The drive then turned into a blue folder with a red circle on it. I restarted and now I’m stuck at the gray ...