Date: Sun, 6 Apr 1997 21:08:20 +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: <199704061908.VAA04276@cisco.it>
next in thread | raw e-mail | index | archive | help
>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)
It's an error all mine.
In execl I didn't add the argument 0 (the name of the script/program), so
the adduser procedure was missing the first argument ("-batch").
Now I have different errors, but I'll open an another topic.
Tonino
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704061908.VAA04276>
