[perl] Duda
Gunnar Wolf
gwolf@campus.iztacala.unam.mx
Wed, 16 May 2001 12:01:20 -0500 (CDT)
> ALguien me puede decir como puedo hacer para que dentro de mi programa me
> diga que usuario soy?, este programa lo ejecutan como root.
Citando de perldoc perlvar:
$< The real uid of this process. (Mnemonic: it's the
uid you came FROM, if you're running setuid.)
$> The effective uid of this process. Example:
$< = $>; # set real to effective uid
($<,$>) = ($>,$<); # swap real and effective uid
(Mnemonic: it's the uid you went TO, if you're
running setuid.) Note: "$<" and "$>" can be
swapped only on machines supporting setreuid().
Saludos,
-------------------------------------------------------------------
Gunnar Wolf gwolf@campus.iztacala.unam.mx
Universidad Nacional Autónoma de México, Campus Iztacala
Jefatura de Sección de Desarrollo y Admon. de Sistemas en Red
Departamento de Seguridad en Computo - DGSCA - UNAM
-------------------------------------------------------------------
--------- Pie de mensaje --------------------------------
Visite: http://tlali.iztacala.unam.mx/~randrade/perl.shtml
Cancelar inscripcion:
mail to: majordomo@tlali.iztacala.unam.mx
text : unsubscribe perl