PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP 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:
  #1  
Old September 11th, 1999, 06:08 PM
toiwa
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Hi,all ! I have a real quick question about Apach Authenicate with PHP. Ok...I would like to write a script that would delete a file in "MYDIR" and own by user "me" and group "myself." I set up Apache where it can takes my ID and password and I'm it. The problem is that it won't let me delete any file in "mydir" which is own by me? Any help please, thanks in advance!!!!!!!!!

Reply With Quote
  #2  
Old September 17th, 1999, 10:47 AM
moderator
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
What username is Apache running under?

If it is running as your username I'm not sure what is wrong, however if it is running as user 'nobody' or 'webserver' or something like that then the files it is supposed to delete need to be owned by the same user.

Reply With Quote
  #3  
Old September 17th, 1999, 03:52 PM
toiwa
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Thanks for the tip and the username is "NOBODY" of what Apache is running under. The reason I do NOT want to make the files owned by "NOBODY" is that if I have lots users logged in, and they can delete anything under someone's else you know..well, hope I express my idea clearly to you.

Reply With Quote
  #4  
Old September 18th, 1999, 10:23 AM
davidn
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
There is nothing magic to the 'nobody' ID under a UNIX system. Files owned by that user are subject to the same protection as any other user's files and directories. That is, files cannot be deleted unless the directory permissions in which they reside allows them to do so.
It sounds as if you wish to run apache as a specific user, to avoid making directories world writable (which allows any user to delete files not owned by them). Fair enough. Apache does have the facility to do this; see your server's documentation for details.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > Authenicate with PHP WITHOUT PHPLIB!

Developer Shed Advertisers and Affiliates



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

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


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap