Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old May 8th, 2001, 03:54 AM
WeXXL's Avatar
WeXXL WeXXL is offline
Awake and listening...
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: Berlicum, the Netherlands
Posts: 122 WeXXL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 6 h 3 m 42 sec
Reputation Power: 8
chmod

Hello all. I have a phpfile which is calling a script "texthisjob". This script reads a file, copies it and needs to write another file.

This script should not be able to be called by others on the web, except if they use that certain php-file. The php-file should be accessible for all.

I've heared I can set the permissions to the file with chmod. Can anybody help me with that, I don't know what permissions to set on each file.
(upload.php and texthisjob).

Thanks in advance.
__________________
People who get a raise because of their good work have been underpayed for quite some time.

Reply With Quote
  #2  
Old May 8th, 2001, 11:52 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Say PHP was installed as a module of Apache, upload.php just need -rw-r--r-- (644). For texthisjob, it should be -rwxr-xr-x (755).

>> needs to write another file

The directory such file resides in needs to be at least drwx---rwx (707) assuming Apache runs as nobody. Then this file can be created. If this file already exists but needs to be modified/replaced, alter your textthisjob script and chmod the file to -rw-r--rw- (646) when created.

I don't code PHP, so how to code upload.php is up to you to find out yourself. Check the PHP forum, calling a Perl script from PHP script has been asked and answered at least few million times, so do a search there.

Your message is a bit off topic here.

Reply With Quote
  #3  
Old May 9th, 2001, 07:58 AM
WeXXL's Avatar
WeXXL WeXXL is offline
Awake and listening...
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: Berlicum, the Netherlands
Posts: 122 WeXXL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 6 h 3 m 42 sec
Reputation Power: 8
chmod is apache/unix-related, isn't it?

I wasn't asking for php-code

But thanx anyway.

Last edited by WeXXL : May 9th, 2001 at 10:24 AM.

Reply With Quote
  #4  
Old May 9th, 2001, 07:15 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> chmod is apache/unix-related, isn't it?

Not Apache-related but UNIX-related. You can request Devshed to take those quiet+useless forums like vi and emacs off and put up a UNIX-related or even Mail+DNS+FTP forums up.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > chmod


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway