Bluehost.com Web Hosting $6.95

RE: [PHP] So in summary this can't be done due to permission problems?

This is a discussion on RE: [PHP] So in summary this can't be done due to permission problems? within the PHP General forums, part of the PHP Programming Forums category; > -Why the concern about letting that user have execute permissions, > and then prevent anyone (except those that have ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-11-2003
Matt Schroebel
 
Posts: n/a
Default RE: [PHP] So in summary this can't be done due to permission problems?

> -Why the concern about letting that user have execute permissions,
> and then prevent anyone (except those that have valid reasons) from
> having write/execute permission to the webroot.


The permissions are Read, Write, and Execute. Read and Write are self
explanatory (for directories Write means you can add new files).
Execute means you can run an program or shell script (for directories
this means you can change directories to it). There are 3 settings for
the permissions, User-rwx, Group-rwx, and Other-rwx. Apache usually
runs as an unprivileged user, so it uses the Other permissions. Other
is everyone that isn't the owner or group, so it's basically anyone else
on the server. If you give other write access to the directory with
other execute permission, then anyone can read/write to the directory.
Which means that they can delete, change text, images, what have you.
On a shared server with lots of untrusted users if could be interesting.

So create a temp directory, and give chmod o=rwx. Do your writing
there, when done stick the final file into a table in a db, and have
your main page fetch the contents.


For the CMS, before you work too much, take a look at typo3 ...
http://www.typo3.com/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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




All times are GMT +1. The time now is 07:24 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0