Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Contributions to ELOG  Not logged in ELOG logo
Entry   Compiling elogd.c on HP-UX 64 bit, posted by Peter Rienstra on Wed Jul 11 11:13:16 2007 elogdhpux64.c.gz
    Reply   Re: Compiling elogd.c on HP-UX 64 bit, posted by Stefan Ritt on Fri Jul 13 12:36:45 2007 
       Reply   Re: Compiling elogd.c on HP-UX 64 bit, posted by Peter Rienstra on Mon Jul 16 15:27:08 2007 man_setuid.txtman_setreuid.txtman_setresuid.txt
          Reply   Re: Compiling elogd.c on HP-UX 64 bit, posted by Stefan Ritt on Mon Jul 16 15:57:47 2007 
             Reply   Re: Compiling elogd.c on HP-UX 64 bit, posted by Peter Rienstra on Mon Jul 16 16:43:07 2007 
Message ID: 25     Entry time: Mon Jul 16 15:57:47 2007     In reply to: 24     Reply to this: 26
Author: Stefan Ritt 
Author Email: stefan.ritt@psi.ch 
Category: Other 
Subject: Re: Compiling elogd.c on HP-UX 64 bit 
Status: Beta 
Last Revision: Thu Jul 12 09:38:47 2007 by Peter Rienstra 

Peter Rienstra wrote:
HP-UX doesn't have the "seteuid" and "setegid" functions. But there are "setuid+setgid", "setreuid+setregid" and "setresuid+setresgid" functions available.


I had a look and found that setreuid/setregid is also available under Linux, so I use those functions instead, which should also work on HP-UX. Can you check revision 1888 (http://savannah.psi.ch/viewcvs/trunk/src/elogd.c?root=elog&rev=1888), compile it and see if you can run it at least under your non-root account.
ELOG V3.1.5-3fb85fa6