🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Cambiar de root a otro usuario, programando.

#13693
From: Seldon
Date: Sat, 03 Feb 2001 14:39
37 lines
2278 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


El Sat, 3 Feb 2001 10:50:09 +0100, KaSKAraS no ten�a nada mejor que hacer,
y dijo en es.comp.os.linux.programacion:

>Pero, �Como hago para que siendo root se convierta en otro usuario y me 
>muestre los resultados en funcion de ese usuario? Es bueno usar system("su 

man setuid
man seteuid

>usuario") y en general las llamadas a system()???

	No, es mal�simo si el programa va a ser ejecutado por root o tiene el 
bit setuid, por motivos de seguridad.

Slds

- -- 
Seldon (seldon@seldon.4mg.com) - Linux user: 164.255
=================================================
PGP Key: http://pgp5.ai.mit.edu:11371/pks/lookup?op=get&search=0x64794AF8
Fingerprint: DA8F 06A0 B770 4211 A6E7  D1E8 8A03 BC70 6479 4AF8
=================================================
Administrador Lista Hackindex:
hackindex-alta@eListas.net

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

iD8DBQE6fBgpigO8cGR5SvgRAvtoAKDN9RbanYj1DndTNoW/geY/KD6PPwCgnUDo
zN/BmGt5ZyeGfG2SOZDwwrw=
=Ah3G
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <a75h59.6g.ln@gaia.seldon.4mg.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.skycache.com!Cidera!newsfeed.comtenidos.com!m2newsfeeder01!seldon
References: <95gkbp$39p$1@kenobi.antakira.com>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,2f2510aa7543b494
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-02-03 06:49:50 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.skycache.com!Cidera!newsfeed.comtenidos.com!m2newsfeeder01!seldon
From: seldon@SPAMseldon.4mg.com (Seldon)
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Cambiar de root a otro usuario, programando.
Date: Sat, 3 Feb 2001 15:39:38 +0100
Organization: Or-ga-ni-za-ción-ción
Lines: 37
Message-ID: <a75h59.6g.ln@gaia.seldon.4mg.com>
References: <95gkbp$39p$1@kenobi.antakira.com>
Reply-To: seldon@SPAMseldon.4mg.com
NNTP-Posting-Host: usuario1-37-129-43.dialup.uni2.es
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: m2newsreader01.wanadoo.es 981211119 14535 62.37.129.43 (3 Feb 2001 14:38:39 GMT)
X-Complaints-To: usenet@m2newsreader01.wanadoo.es
NNTP-Posting-Date: Sat, 3 Feb 2001 14:38:39 +0000 (UTC)
User-Agent: slrn/0.9.6.2 (Linux)