Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 01-22-2009, 05:59 PM Permissions
Super Talker

Posts: 113
Name: Paul
Trades: 0
Hi all,

Ive been having trouble installing my video ripping script on someones web host and I believe my issue is down to permissions, once the script is uploaded you have to chomd some files and folders to 777, but in this instance the host uses suPHP which requires permissions set to 644 and 755.

His host informs me the script will work with these permissions but this is the first time I've been unable to clear the error and this is the first time I've been unable to chomd the files to 777 so Im wondering if it will!

What is the difference wih permissions set to 755 and se to 777

This is the webpage with the error:

www.videotomp3.net

Last edited by fattony; 01-22-2009 at 06:34 PM..
fattony is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-22-2009, 09:09 PM Re: Permissions
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Quote:
What is the difference wih permissions set to 755 and se to 777
755 means
Owner of the file: full access
Member of the same group than the owner: read and execute permission
Other users: read and execute permission

This is an octal system split in 3 values.
1st value is for the owner of the file..
2nd value is for the members of the same group than the owner.
3rd value is everyone else.

As for the numbers, it works like a bitmask. You have to add the values up to determine the full rights:
4 is for read
2 is for write
1 is for execution

5 is 4+1

From the man page of my linux station:
man 2 chmod
Quote:
S_IRUSR (00400) read by owner

S_IWUSR (00200) write by owner

S_IXUSR (00100) execute/search by owner ("search" applies for direc-
tories, and means that entries within the directory
can be accessed)
__________________
Only a biker knows why a dog sticks his head out the window.

Last edited by tripy; 01-22-2009 at 09:11 PM..
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 01-23-2009, 10:23 AM Re: Permissions
Defies a Status

Posts: 1,605
Trades: 0
Most scripts that "need" 777 will work under suPHP with 755 settings because the script is treated as the owner of the file and allowed to do it all.

TMI tripy.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 01-23-2009, 10:39 AM Re: Permissions
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
tmi ?
Too many informations ?
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 01-23-2009, 01:46 PM Re: Permissions
Super Talker

Posts: 113
Name: Paul
Trades: 0
Thanks for the replies, I've changed the permissions that I'd normally change and the script doesnt work, it gives me a permission error, if I changed public_html to 755 would that then change all files inside to 755?
fattony is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Permissions
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15367 seconds with 12 queries