RE: [PHP] a rights question.....

From: Date: Thu, 16 Nov 2000 14:58:22 +0000
Subject: RE: [PHP] a rights question.....
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-25702@lists.php.net to get a copy of this message
I'm using Linux Red Hat and Apache. 1) My Web (PHP) application is in (/home/httpd/html) /app/test.php 2) I have 4 directories : /home/dir1 /home/dir2 /home/dir3 /home/dir4 each with different user/password. So, I guess there are 2 choices : 1) Give rihgts to Apache user (nobody) over those 4 directories. or 2) Access the file inside those directories by user and password, something like fopen($user1:$password1@/home/dir1/file1.txt) is this correct?....may be the second one be the more "luxury" solution, is't it??... Thanks in advance..... Ing. J@vier Morquecho Morquecho Cedetel Desarrollo de proyectos comerciales Tel : 177-10-87 Cel : 177-00-87 e-mail : jmorquec@cedetel.com.mx e-movil : 5281770087@emovil.cedetel.com.mx Home Cedetel : http://www.cedetel.com.mx "#define QUESTION ((bb) || !(bb)) // Shakespeare" -----Mensaje original----- De: Jason Cox [mailto:jasonc@webpipe.net] Enviado el: Martes 14 de Noviembre de 2000 4:08 PM Para: Javier Morquecho Morquecho CC: php-general@lists.php.net Asunto: RE: [PHP] a rights question..... What OS are you running? If you're running Unix (and possibly Windows, I don't know), your httpd.conf file will tell you which user your webserver is running as. You can also run "top" and look which user it lists for httpd. By default I believe it is user 'nobody'. On windows permissions don't really mean anything. It'll pretty much do whatever it feels like. :) Jason -----Original Message----- From: Javier Morquecho Morquecho [mailto:jmorquec@cedetel.com.mx] Sent: Tuesday, November 14, 2000 2:58 PM To: 'Php-General' Subject: [PHP] a rights question..... Hi friends ! I'm developing an application with PHP, this application read information of a file x ejem /home/test/test.txt After read it, I delete it. Another application inside my company put this file on that directory, my question is, what about rights??, what about file and directory rights??. I mean, somebody with user/password put a file in this directory, but how my application can delete this file??, what user my application (PHP) is using??... Sorry if this is a easy questio, but I'm confiuse.. Thanks.... Ing. J@vier Morquecho Morquecho Cedetel Desarrollo de proyectos comerciales Tel : 177-10-87 Cel : 177-00-87 e-mail : jmorquec@cedetel.com.mx e-movil : 5281770087@emovil.cedetel.com.mx Home Cedetel : http://www.cedetel.com.mx "#define QUESTION ((bb) || !(bb)) // Shakespeare" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net _______________________________________________________ Site Design, Hosting, and E-Commerce at www.webpipe.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#25702) next »