Idm download for windows 10 32 bit. I'm on Mac. I want to make it so that any new files/folders that get created within a specific folder have the same permissions (not group, that's already taken care of) as those of the parent directory. On Linux, I would normally use setfacl, but it looks like chmod on Mac might be able to do what I'm looking for. I've read through the man page for chmod but I still can't figure out how to properly format the command to get what I want.
Active2 years, 2 months ago
Jeremy HicksJeremy Hicks
migrated from serverfault.comNov 16 '11 at 15:04
Konica minolta bizhub 200 driver. This question came from our site for system and network administrators.
5 Answers
First, a bit of background to explain what's going on: Files in OS X can have two quite different kinds of permission settings applied to them: POSIX and ACLs.
As most of you will know Mac OS X is a UNIX-based Operating System based upon the Mach Kernel (see here). As such a lot of the functionality found in UNIX and UNIX-like operating systems, and BSD for that matter, is present and in most cases identical, as well as the binaries. Chmod changes the permissions of each given file according to mode, which can be either an octal number representing the bit pattern for the new permissions or a symbolic representation of changes to make, (+-= rwxXstugoa).
Files always (well, almost always) have POSIX permissions applied, consisting of an owner, group, and others (with some combination of read, write, and execute for each of those). There is no way to control inheritance of POSIX permissions: new items are always owned by whatever user created them, the group assignment is inherited from the folder they're in, and the access is determined by the umask (which is pretty much always: owner gets full access, group and others read only + execute for folders). So POSIX permissions won't work for what you're trying to do.
Files can also have an access control list (ACL) applied. This is a list of access control entries (ACEs), each of which applies to a user or group, specifies types of access (in great detail), whether they're being allowed or denied, and whether the ACE should also be copied to items created inside the folder. That last bit is the part that makes this useful for you; you need to create an ACE on the folder that specifies the group you want, the types of access you want, and full inheritance.
chmod on OS X can manipulate ACEs with the +a, -a, etc permissions options. If I understand what you want, you'd use this (with your group name and folder path substituted) to create the ACE:
![Mac osx chmod command Mac osx chmod command](https://idmedia.no/wp-content/uploads/2015/08/MacOSX1.png)
Note that the inheritance is not 'live', i.e. it doesn't apply to items created before you assigned the ACE, and it doesn't apply to items created somewhere else and then moved into the folder. You can apply it to existing contents by using -R (
Gordon DavissonGordon Davisson
chmod -R +a ..
). I don't know of a way (except Apple's server admin tools) to force inheritance to items moved into the folder.
23.8k4 gold badges49 silver badges59 bronze badges
Try adding
-R
to @gordon's command, like so:
The
-R
option will (as noted here):
Recurse: Change the mode of file hierarchies rooted in the files instead of just the files themselves.
Changing the file hierarchies seems to be what you're looking for (for new files, directories, etc.).
You can also check out this Apple.SE post, which covers a situation somewhat similar to yours (except relating to a shared directory), which required a
sudo
tacked onto the front.
Community♦
JW8JW8
4,8152 gold badges15 silver badges33 bronze badges
This (-R) is not what most people seek to do; most of the time they would prefer to change the ACL on the topmost directory and do something magical to force all contained objects to inherit flags according to the ACL they specified on the root of that sub-tree. This is much more elegant as the ACLs on the objects will sort these inherited ACEs according to policy.
And yes, I had to write a python script to do this, I didn't find anything appropriate either.
nosesnoses
zaonlinezaonline
On a Mac try using PathFinder, it makes it easy to set ACL and POSIX. If you're hosting WordPress on a Mac Server you'll also need to set
define('FS_METHOD', 'direct');
in the wp-config.php so that installing plugins and upgrading won't ask you for FTP details.
So basically you keep the default POSIX permissions, and add the user _www (not group) to ACL, then click Propagate Permission in the ACL window.
MaxMax
You must log in to answer this question.
Not the answer you're looking for? Browse other questions tagged macos .
Active2 years, 5 months ago
I'm facing an annoying problem. It's been pretty frustrating. I am using a computer at my school to work on the Coursera Startup class. I am trying to connect to an Amazon EC2 instance. I downloaded the key pair. I check permissions.
So, it's not secure. So I need to change the permissions. I try:
Still has read permissions to everyone. Just to demonstrate what happens I do this:
Is it impossible to change permissions to the user without root permission? I'd be grateful for any kind of help.
RohitRohit
1,9482 gold badges15 silver badges27 bronze badges
3 Answers
I copied the file to my
~/.ssh
folder and then changed the permissions with chmod
. That did it.
Just to provide more information, the permissions for the ssh folder,
And the permissions to the folder I used initially
I curious as to why I could not change the permissions to the
startup
folder even after multiple attempts with the chmod -R
option.
Also, note that I was using Mac OS X in my school's library.
RohitRohit
Mac Os X Chmod
1,9482 gold badges15 silver badges27 bronze badges
Looks like you've discovered that the Macintosh doesn't strictly agree with the UNIX permission bits.
Ultimately, there are ACL bits that MacOS sets and that the Macintosh Finder obeys.
To solve your problem quickly, in your Terminal command line, type in '
open .
' (or the path to your 'startup
' folder) and that will open up the folder in your Macintosh Finder.
Then do a 'Get Info' on the file:
Mac Os Update
You can change your permissions here.
Michael DautermannMichael Dautermann
82.3k15 gold badges138 silver badges177 bronze badges
it WORKS!
- When manually selected the file and from Get info modified the permission. But it failed to do so while trying
chmod -R 777 msg.html
Sudo Chmod 777
10.2k39 gold badges171 silver badges320 bronze badges