Date: Sun, 30 Jul 2000 23:59:24 -0700 From: Alfred Perlstein <bright@wintelcom.net> To: Alain Fauconnet <alain@cscoms.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Trouble with waitpid(2) porting poppasswd Message-ID: <20000730235924.A4854@fw.wintelcom.net> In-Reply-To: <20000731135534.A552@cscoms.net>; from alain@cscoms.net on Mon, Jul 31, 2000 at 01:55:35PM %2B0700 References: <20000731135534.A552@cscoms.net>
next in thread | previous in thread | raw e-mail | index | archive | help
* Alain Fauconnet <alain@cscoms.net> [000730 23:56] wrote: > Dear all, > > I am doing a port of the poppasswd utility (well, one of the numerous > versions floating) because I have failed to find a port already > available. > [snip] > > The child: > > - does a setsid(2) to start a new session > - opens the slave part of the pty > - does dup2(2) of stdin, stdout and stderr to the slave part of the pty > - adjusts some terminal attributes (ICANON, ~ONLCR, ~ECHO...) > - changes uid and gid to those of the target user > - does execl(2) /usr/bin/passwd. I would just use 'pw' it'll make your life easier. -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000730235924.A4854>