[comp.unix.questions] setuid, seteuid

wolf@grasp2.univ-lyon1.fr (Christophe Wolfhugel) (01/14/91)

Hi, I'm trying to adapt the ftpd-logging daemon to the RS/6000's AIX.  The
compile works file (with little change and specific compilation options), but
once started, after logging in the system, I get the message
"Can't set uid.".

So, just to try I changed the seteuid to setuid, and I logged successfully to
the system's ftp server but... no more possibility to execute a commande
(such as dir or ls): "Unable to open data socket: permission denied".

Can anyone help me in modifying the source code so that it works correclty?

-- 
Christophe Wolfhugel                  |  Email: wolf@grasp1.univ-lyon1.fr
INSA Lyon - Departement Informatique  |  Fax: (+33) 72 44 08 00 
69621 Villeurbanne Cedex, France      |    (Attn-To: Wolfhugel - C 210)

  Disclaimer: these are my own opinions, not my employer's.