🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Ejecutar script con PHP

#8679
From: Iván Sánchez Ortega
Date: Sat, 26 Oct 2002 13:25
23 lines
2087 bytes
PATAN wrote:

> Buenas.
> 
> Estoy haciendo una web con PHP, y necesitaba poder ejecutar un script
> hecho tambi�n con PHP pero con permisos de ROOT, �Sabe alguien como se
> puede hacer esto? en concreto tendria que preguntar la contrase�a de root
> y si es correcta ejecutar el script, he estado mirando el su, pero no
> permite que se le pase la contrase�a como argumento (o eso creo).

1.- �No puedes hacer el script de tal manera que no necesite permisos de 
root?

2.- "sudo" es la soluci�n a tus problemas.


----------------------------------
Iv�n S�nchez Ortega -ivansanchez-arroba-wanadoo-punto-e-ese-

http://acm.asoc.fi.upm.es/~mr/ 
Proudly running Debian Woody 3.0 Linux with 2.4.19 kernel, KDE3, and PHP4 
generating this signature.
Uptime: 15:24:05 up 35 min,  2 users,  load average: 1.54, 2.05, 1.73
Technical Details
Message-ID: <20021026133218.13AFF8F2.NOFFLE@BlueSpark.local>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!nntp-relay.ihug.net!ihug.co.nz!news.linkpendium.com!news-xfer.cox.net!mainake.escomposlinux.org!pinsa.escomposlinux.org!not-for-mail
References: <qvdcpa.e48.ln@www.mardot.com>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,bef4549bd8e541b0
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-10-26 07:31:17 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!nntp-relay.ihug.net!ihug.co.nz!news.linkpendium.com!news-xfer.cox.net!mainake.escomposlinux.org!pinsa.escomposlinux.org!not-for-mail
From: Iván Sánchez Ortega <ivansanchez-arroba-wanadoo-punto-e-ese-@wanadoo.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Ejecutar script con PHP
Date: Sat, 26 Oct 2002 15:25:11 +0200
Organization: acm.asoc.fi.upm.es
Lines: 24
Message-ID: <20021026133218.13AFF8F2.NOFFLE@BlueSpark.local>
References: <qvdcpa.e48.ln@www.mardot.com>
Reply-To: Iván Sánchez Ortega <ivansanchez-arroba-wanadoo-punto-e-ese-@wanadoo.es>
NNTP-Posting-Host: 62-36-138-121.dialup.uni2.es
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 8Bit
X-Trace: pinsa.escomposlinux.org 1035642675 17969 62.36.138.121 (26 Oct 2002 14:31:15 GMT)
X-Complaints-To: newsmaster@pinsa.escomposlinux.org
NNTP-Posting-Date: Sat, 26 Oct 2002 14:31:15 +0000 (UTC)
User-Agent: KNode/0.7.1