🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #6652

Re: Problema de permisos en PHP

#6652
From: Jesús M. NAVARRO
Date: Mon, 02 Jun 2003 20:26
37 lines
1906 bytes
Hola, �lvaro:

Alvaro G. Vicario escribi� en es.comp.os.linux.programacion:
[...]

>     system('touch /mnt/webs/sitio/www/miniaturas/apache.txt 2>&1');
> 
> con este resultado:
> 
>     touch: creating `/mnt/webs/sitio/www/miniaturas/apache.txt': Permiso
> denegado
> 
> Aparentemente el script se ejecuta bajo el usuario "apache":
> 
>     system('whoami');
> 
> da como resultado:
> 
>     apache
> 
> Si el usuario apache pertenece al grupo samba y el grupo samba tiene
> permiso de escritura en el directorio, �qu� es lo que est� fallando?
> 

Lo primero, aseg�rate de que, en efecto, tenga permisos.  Desde la l�nea de
comandos (como root):

su apache -c "touch /mnt/webs/sitio/www/miniaturas/apache.txt"

Si *realmente* apache tiene permisos para crear el fichero, lo anterior
deber�a crearlo.
-- 
SALUD,
Jes�s
***
jesus_navarro@undominio.net
***
Technical Details
Message-ID: <ngosq-0ai.ln1@mithrandir.intranet>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news-feed1.de1.concert.net!fu-berlin.de!uni-berlin.de!212.97.187.70!not-for-mail
References: <bbftpf$8tfo6$1@ID-157797.news.dfncis.de>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,f95d3ee435ba4a4b
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-06-02 14:12:19 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news-feed1.de1.concert.net!fu-berlin.de!uni-berlin.de!212.97.187.70!not-for-mail
From: Jesús M. NAVARRO <jesus_navarro@undominio.net>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Problema de permisos en PHP
Date: Mon, 02 Jun 2003 22:26:31 +0200
Lines: 37
Message-ID: <ngosq-0ai.ln1@mithrandir.intranet>
References: <bbftpf$8tfo6$1@ID-157797.news.dfncis.de>
NNTP-Posting-Host: 212.97.187.70
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 8Bit
X-Trace: fu-berlin.de 1054588337 9497189 212.97.187.70 (16 [173178])
X-Orig-Path: mithrandir.intranet!news
User-Agent: KNode/0.7.2