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. Lnx-update-tools.cmd – retrieves latest OS X guest tools; Mac OS X: On Mac OS X you will need to be either root or use sudo to run the scripts. This is really only needed if you want to use client versions of Mac OS X. You may need to ensure the OS X scripts have execute permissions by running chmod +x against the 2 files. Chmod Mac Command chmod command allows you to change the access permission of the files or directories. File Permission is given for users,group and others too. Starting with 10.4, Mac OS X has ACL's. The 'chown' man page tells you about their usage, but it leaves a little bit out and isn't all that helpful. If you landed here searching for a basic introduction to OS X permissions, I recommend Brian Tanaka's Take Control of Permissions in Mac OS X, a $10 PDF E-book that will teach you the basics. Apr 23, 2013 Changing a Files Ownership through Finder in Mac OS X You can change a files ownership through the same Get Info panel that lets you adjust permissions in the Mac OS X Finder: Select the file in the Finder, then hit Command+i to summon the “Get Info” window.
Active8 years, 4 months ago
I am trying to set the upload permissions on a local folder in my test website.
I'm using Terminal on a Mac and the following command:
chmod 777 thumbs
but I get the following error
chmod: thumbs: No such file or directory
I'm really not all that sure about using Terminal so sorry if I'm not being clear - I'm trying to set up a PHP site locally on my Mac.
TomTom
migrated from stackoverflow.comMay 18 '11 at 14:49
This question came from our site for professional and enthusiast programmers.
1 Answer
you have to be in the directory that contains thumbs. Do an
to see whats in your current directory. You can also do a
to see where on the filesystem you are. typically when you log in you are in
/home/yourusername
the thumb directory is not there.
hvgotcodeshvgotcodes61311 gold badge66 silver badges1515 bronze badges
Not the answer you're looking for? Browse other questions tagged macterminalchmod or ask your own question.
Active4 years, 11 months ago
Is there any Mac OS X tools or scripts which allow me to change sharing/permission properties of files and subfolders in a folder recursively? For example, to let everybody or a specific user able to read and write, read only, or write only.
Excellll11.4k77 gold badges4242 silver badges6464 bronze badges
puripuri57133 gold badges77 silver badges1919 bronze badges
3 Answers
Try the chmod command. For example, if you have a directory name mydir, the following command will enable read/write for that mydir recursively.
For more information:
Hai VuChmod Mac Os X 777
Hai Vu4,59422 gold badges1717 silver badges1616 bronze badges
Select the root folder that you'd like to work with and open the Inspector (CMD-i or right click and 'Show Info'). The bottom panel is where you can manage permissions.
Add and remove permissions to the list there. To apply the same permissions recursively to every subfolder, click the cog and select 'Apply to Enclosed Items...'
Note: I noticed that the 'Apply to Enclosed Items...' is greyed out when the little lock icon at bottom right hand side of window is locked. If this is the case just click on the lock to unlock it by entering your credentials and then try again with 'Apply to Enclosed Items...'
Community♦
gregsabogregsabo
You want to use the
chmod
and chown
commands.If I remember correctly, you can change the permissions like this:
For more details one these commands, look up their respective man pages in Terminal:
Josh HuntJosh Hunt17.5k1717 gold badges7676 silver badges120120 bronze badges