Date: Sun, 6 Apr 1997 18:20:17 +0200 (MET DST) From: Antonio Nati <A.Nati@cisco.it> To: Dan Busarow <dan@dpcsys.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: adduser using a cgi-bin Message-ID: <199704061620.SAA04140@cisco.it>
next in thread | raw e-mail | index | archive | help
>Which http server are you running? Are you sure it runs as root >and doesn't revert to a non-priviledged user? Are you sure you >want an http server running as root? > I'm running Apache, and the user if *effectively* nobody. I've tried to chmod 4555 the cgi program, with no success (same result). I've tried a new code (copied from passwd for popper), that I run both as cgi and as interactive program: setuid (0); create a channel on a pty device, fork, child --> exec (adduser....) master --> printf (messages from child) result: perl adduser procedure hangs after the first line (copyright of the writer) with or without the chmod 4555 on the program. An interactive program doing system (adduser...) instead works correctly. It looks like adduser hangs if is not working on a terminal. Any suggestion? I may send my development environment (as attachment .tar) to who is interested at the question. Tonino
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704061620.SAA04140>