|
#1
| |||
| |||
| Setting Permissions
Hello, I have my php and mysql set-up on my computer so that I can do my web work from my desktop. I'm trying to run a program which states: "Usage: Download to your PC and extract it, replace extracted admin.php file to your old Mini Web Shop admin.php file, then remember to CHMOD 777 to all required files and directories." Now I know how to set permissions using Fetch to folders and files uploaded on a server, but how do I do this on my desktop? Any light you can shed will be appreciated. Last edited by mediajuggle; August 25th, 2003 at 08:54 AM. |
|
#2
| ||||
| ||||
|
Just select the icon and choose Command-I to bring up the file info. There is a tab here for permissions which lets you change ownership, read and write permissions. This doesn't let you set Execute permissions however, which must be done from the terminal using the chmod command.
__________________ - iMac G5 1.8GHZ 17" | SuperDrive | 160GB | 512MB | Airport Extreme | Bluetooth Keyboard & Mouse | Wacom Intuos II - Pentax *ist DL - JVC MiniDV Camcorder - Airport Express - iPod Nano 1gb white |
|
#3
| |||
| |||
|
so in order words, I wouldn't be able to CHMOD 777 or is the excute automatically set.....? I haven't tried your instructions yet as I'm at work now and we're only running 9.2.2 here |
|
#4
| ||||
| ||||
|
I think, in Terminal, it's chmod 777 /path/to/file; anyone want to confirm this?
__________________ System: • 2.5 GHz MacBook Pro Core 2 Duo, 4 GB RAM, 200 GB hard drive, runs 10.5.6 • 1.6 GHz iMac G5, 1.5 GB RAM, 250 GB hard drive, runs 10.4.11 (slightly out of commission at this time) • iPhone, 4 GB, OS X 2.2.1 |
|
#5
| ||||
| ||||
|
uhh yeah, thats how you do it. It might be useful to envoke chmod with the -R option, and simply list the path to the folder you want chmodded - this will change everything in that folder, and any sub folders. Sounds like the directions specified several files, so you can either do this, or use wildcards in your chmod. example: chmod -R 777 /Library/WebServer/Documents/phpstuff/ or maybe: cd /Library/WebServer/Documents/phpstuff chmod 777 *php (that chmod's all files ending with 'php') keep in mind that 777 allows ANY user to delete the file, rename it, view it, execute it, etc. You probably don't want this perminately. You definately don't, actually. Once you set your program up, I would chmod it so everyone can read and execute it, and only the owner can delete it. The owner is likely you, or the root user. The `ls` command will show you who owns a file. Anyway, just chmod the files back to mode 755 when you finish setting things up. For more information, just type: man chmod into the terminal. Or, type chmod and press return, and chmod will give you a brief help message, which can be helpful when you forget what order the arguments go in.
__________________ irc.lfnet.net #kilonet -+=join in=+- Quote:
Audio Engineer - ProTools and Logic Pro Certified. FCC Licensed RF Technician |
|
#6
| |||
| |||
|
thanx for the info... i;m trying to chmod a folder in my "Sites" folder... what would be the url for that? I can't seem to get it correctly |
|
#7
| ||||
| ||||
|
[b]http://localhost/~your_username/[/red] I think
__________________ System: • 2.5 GHz MacBook Pro Core 2 Duo, 4 GB RAM, 200 GB hard drive, runs 10.5.6 • 1.6 GHz iMac G5, 1.5 GB RAM, 250 GB hard drive, runs 10.4.11 (slightly out of commission at this time) • iPhone, 4 GB, OS X 2.2.1 |
|
#8
| |||
| |||
|
Okay I typed in: chmod -R 777 /http://localhost/~christopherenglish/finasboutique/ but it's still not working... it tells me: No such file or directory any ideas... |
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Finder not "allowed" to change permissions anymore! | SupaScoopa | Mac OS X System & Mac Software | 1 | December 4th, 2002 04:30 AM |
| Help setting a program to launch at startup with root permissions... | Jason | Mac OS X System & Mac Software | 6 | September 12th, 2002 02:44 PM |
| Setting permissions for Classic? | nanosound | Mac OS X System & Mac Software | 8 | March 29th, 2002 03:00 PM |
| UNIX related things... (tr, cut, awk, and permissions) | simX | Apple News, Rumors & Discussion | 5 | December 19th, 2001 03:33 AM |
| File permissions and the drop box. | ericmurphy | Apple News, Rumors & Discussion | 2 | July 3rd, 2001 09:55 AM |