setuid, seteuid (problem with ftpd-logging)

Christophe Wolfhugel wolf at grasp2.univ-lyon1.fr
Mon Jan 14 05:49:42 AEST 1991


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 at 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.



More information about the Comp.unix.questions mailing list