View Full Version : How do you CHMOD on OSX?
GeneR
Jun 9, 2003, 02:41 AM
Sorry, really not a computer buff. Only learn what I need. However, I'm trying to install a program on my linux host and it says that I need to CHMOD a document to 777 in order to have it work.
If I can CHMOD on OS X would someone please help me understand how to do that? Thanks! Sorry for the bother.
Gene
ibookin'
Jun 9, 2003, 02:54 AM
chmod 777 <filename>
Chimaera
Jun 9, 2003, 03:34 AM
hang on, this is a doc on a remote computer you need to chmod?
or is the file on your machine?
if its on the remote machine you need to do the following:
1, open terminal (applications:utilities)
2, type SSH -l <account name on remote server> <IP/DNS of remote server> (for example ssh -l badger 62.31.22.145 OR ssh -l badger www.reallydull.com> (no these are *NOT* valid accounts - only examples :))
3, enter your password
4, type cd <location of file> (eg cd /~/reallycoolapp/ (the ~ denotes your home directory))
5, type chmod 777 <filename>
6, type ./<filename>
if the file is on your OSX machine omit steps 2 and 3.
maradong
Jun 9, 2003, 03:40 AM
did it work ?
Veldek
Jun 9, 2003, 06:58 AM
Can't you also do it using the "Get info" contextual menu? This is perhaps slightly easier than using the terminal for someone new to Unix. In this case 777 means read and write permission to everyone.
edit: oops, didn't see that it was on linux. Forget about my post.
GeneR
Jun 9, 2003, 12:08 PM
Thanks for info! :D
I didn't try it (yet). (I got so frustrated last night I stayed up until 2am trying to find another way.) I found that BBEdit had Open from FTP Server option.
File > Open from FTP Server >
Entered my server info, username, password,
pressed 'Connect'
Then clicked on the files and folders and pressed 'Get Info' and worked with the CHMOD settings that way.
What a pain in the butt. :(
However, I really appreciate the info. I will definitely try using all the helpful information on this thread. Thanks a lot, guys!
RE: ibookin's suggestion.
Would that mean going into the utility, Terminal, and typing in CHMOD?
RE: Veldek
I'm sorry, I did not understand your meaning by "oops, didn't see that it was on linux. Forget about my post." What exactly is the difference between the two?
I apologize for my ignorance. Thanks a lot. :D
Doctor Q
Jun 9, 2003, 02:00 PM
Originally posted by Chimaera
4, type cd <location of file> (eg cd /~/reallycoolapp/ (the ~ denotes your home directory))A minor correction: I think you mean cd ~/reallycoolapp/, with no slash on the front.
Chimaera
Jun 10, 2003, 12:27 PM
you're absolutely right, I do meany ~/reallycoolapp/ :)
Veldek
Jun 10, 2003, 12:51 PM
Well, I meant in OS X you needn't use the terminal to change permissions. You can do it from Aqua. Using linux, I don't know if your window manager makes this possible. Most probably it can only be done using the terminal (and this is what most linux users do anyway, isn't it?)
Chimaera
Jun 10, 2003, 12:55 PM
Sure he could do it in X - however I'm guessing he dosn't had X available to him
gopher
Jun 10, 2003, 01:29 PM
Most of the time unless you are going to really get into the Unix of Mac OS X you don't want to Chmod. Mac OS X's operating system and applications have very specific permissions that you don't want to mess around with. With Mac OS X 10.1.5 and up you can run an Apple utility to fix permissions to match the template of the operating system's expected permissions:
http://docs.info.apple.com/article.html?artnum=106900
for Mac OS X 10.1.5.
and for Mac OS X 10.2 and up, use the Applications -> Utilities -> Disk Utility -> First Aid tab -> select the hard disk and hit the Repair Permissions button if your machine will boot to the desktop. One method to fixing some machines that won't boot the hard disk with 10.2 and up is use the Mac OS X 10.2 installer CD's Disk Utility in the Installer menu.
There is a utility called batchmod which will modify permissions in batch, if you know what you are doing. People who don't can render their whole system unbootable. Batchmod is here:
http://www.macupdate.com/info.php/id/6440
Only use it if you are sure what you are doing. One of my friends used it and not only made his hard drive unbootable, but also his CD drive!
yzedf
Jun 10, 2003, 02:21 PM
open the terminal (Applications folder)
type the following:
man chmod
this will give you the manual (man) for chmod (command).
you can use this for just about any unix based utility in OS X or linux or BSD.
Tim Flynn
Jun 10, 2003, 02:32 PM
There is also a utility out there somewhere called "batmod" I believe.
It works well.
Dunepilot
Jun 25, 2009, 08:08 AM
There is also a utility out there somewhere called "batmod" I believe.
It works well.
Its 'batchmod' for anyone who finds this 6 years later via Google :D
http://www.macchampion.com/arbysoft/Welcome.html
Doctor Q
Jun 25, 2009, 08:52 AM
Thanks, Dunepilot. It's pretty funny to see this thread again after 6 years and 2 weeks!
MacGranite
Nov 12, 2009, 07:28 PM
Its 'batchmod' for anyone who finds this 6 years later via Google :D
http://www.macchampion.com/arbysoft/Welcome.html
that URL appears to be dead, but I found the app here:
http://www.macchampion.com/arbysoft/BatchMod/Welcome.html
rhett7660
Aug 1, 2011, 10:28 AM
that URL appears to be dead, but I found the app here:
http://www.macchampion.com/arbysoft/BatchMod/Welcome.html
I know this is an old thread.. but this is exactly what I was looking for! Thank you very much!
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.