image
image

Go Back   macosx.com > Mac Help Forums > Networking & Compatibility

Reply
 
LinkBack Thread Tools
  #1  
Old August 24th, 2003, 11:55 PM
Registered User
 
Join Date: Aug 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
mediajuggle is on a distinguished road
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.
Reply With Quote
  #2  
Old August 25th, 2003, 12:01 AM
symphonix's Avatar
Scratch & Sniff Committee
 
Join Date: Jul 2001
Location: The Australian Jungles
Posts: 4,025
Thanks: 2
Thanked 5 Times in 4 Posts
symphonix is on a distinguished road
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
Reply With Quote
  #3  
Old August 25th, 2003, 08:56 AM
Registered User
 
Join Date: Aug 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
mediajuggle is on a distinguished road
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
Reply With Quote
  #4  
Old August 25th, 2003, 07:42 PM
Arden's Avatar
Where mah "any" keys at?
 
Join Date: Dec 2002
Location: San Francisco
Posts: 7,751
Thanks: 0
Thanked 0 Times in 0 Posts
Arden is on a distinguished road
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
Reply With Quote
  #5  
Old August 25th, 2003, 08:44 PM
kilowatt's Avatar
mach-o mach-o man
 
Join Date: Mar 2001
Location: irc.lfnet.net #kilonet
Posts: 984
Thanks: 0
Thanked 0 Times in 0 Posts
kilowatt is on a distinguished road
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:
...the belief that the rights of man come not from the generosity of the state but the hand of God...
PEBKAC - Problem Exists Between Keyboard And Chair. --who said it first?
Audio Engineer - ProTools and Logic Pro Certified.
FCC Licensed RF Technician
Reply With Quote
  #6  
Old August 26th, 2003, 07:11 PM
Registered User
 
Join Date: Aug 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
mediajuggle is on a distinguished road
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
Reply With Quote
  #7  
Old August 26th, 2003, 08:25 PM
Arden's Avatar
Where mah "any" keys at?
 
Join Date: Dec 2002
Location: San Francisco
Posts: 7,751
Thanks: 0
Thanked 0 Times in 0 Posts
Arden is on a distinguished road
[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
Reply With Quote
  #8  
Old August 28th, 2003, 11:26 PM
Registered User
 
Join Date: Aug 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
mediajuggle is on a distinguished road
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...
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump

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


All times are GMT -5. The time now is 06:39 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.