🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ejecucion de un script como root

#9594
From: Tomas Sanchez Santos
Date: Fri, 14 Jun 2002 00:58
32 lines
2162 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

En es.comp.os.linux.programacion, [ZoRo] escribi�:

> Mi problema es que estoy contruyendo una palicacion web para dar de alta
> usuarios y cuentas de correo.
> 
> La estoy haciendo en jsp con unas classes javas queme ejecutan comandos.
> Y el problema esta a la hora de ejecutar esos comandos que, para ser
> ejecutados, tienes que ser root, por ejemplo el useradd, el makemap has
> access<access .....

	Puedes hacer que tu aplicacion escriba los datos en un fichero y por
	otra parte tener una tarea en el cron que cada cierto tiempo
	compruebe si hay datos en el fichero, y si es asi realice las tareas
	oportunas.

Saludos
- -- 
Tom�s S�nchez Santos  <tsanchez at escomposlinux.org>	  
Debian GNU/Linux 3.0 (Woody)
PGP KeyId: 91DA49C6. Clave PGP en pgp.escomposlinux.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9CT+d4IhFOpHaScYRAgO3AKCt6iSGp2xWfPtxN6oaCVfNLKAHuwCfeHNH
C8lYE0mRA+rYyMV4fzTun3s=
=RhiT
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <slrnagifsn.17b.tsanchez@mortadelo.casa>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!62-36-139-152.dialup.uni2.ES!not-for-mail
References: <aeaui2$594oi$1@ID-59646.news.dfncis.de> <slrnagi33t.oj.raquel@mipc.localdomain> <aeb36l$4l6pq$1@ID-59646.news.dfncis.de>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,79abefbc1c845197
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-06-13 18:21:21 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!62-36-139-152.dialup.uni2.ES!not-for-mail
From: Tomas Sanchez Santos <tsanchez@escomposlinux.org>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: ejecucion de un script como root
Date: Fri, 14 Jun 2002 02:58:05 +0200
Lines: 32
Message-ID: <slrnagifsn.17b.tsanchez@mortadelo.casa>
References: <aeaui2$594oi$1@ID-59646.news.dfncis.de> <slrnagi33t.oj.raquel@mipc.localdomain> <aeb36l$4l6pq$1@ID-59646.news.dfncis.de>
Reply-To: tsanchez@escomposlinux.org
NNTP-Posting-Host: 62-36-139-152.dialup.uni2.es (62.36.139.152)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 1024017679 5784462 62.36.139.152 (16 [43504])
X-Orig-Path: 127.0.0.1!nobody
User-Agent: slrn/0.9.7.4 (Linux)