From owner-freebsd-isp Thu Jun 19 17:10:42 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id RAA28527 for isp-outgoing; Thu, 19 Jun 1997 17:10:42 -0700 (PDT) Received: from panda.hilink.com.au (panda.hilink.com.au [203.8.15.25]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA28510 for ; Thu, 19 Jun 1997 17:10:24 -0700 (PDT) Received: (from danny@localhost) by panda.hilink.com.au (8.8.5/8.8.5) id KAA10958; Fri, 20 Jun 1997 10:07:49 +1000 (EST) Date: Fri, 20 Jun 1997 10:07:47 +1000 (EST) From: "Daniel O'Callaghan" To: Paulo Fragoso cc: freebsd-isp@FreeBSD.ORG Subject: Re: PPPD whith +pap and login (whoami?) In-Reply-To: <33A9935E.8BA55934@nlink.com.br> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-isp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Thu, 19 Jun 1997, Paulo Fragoso wrote: > I wuold like write a script for many things. But I don't know get UID > when my users are logged whith pppd using "+pap login auth". This script > is started from getty whith > ":de#2:np:sp#115200:pp=/usr/local/etc/pwin:". > > Pppd write in the file wtmp the username but 'pwin' script has UID=0. > Are there any solution whithout write anything in some file to get > username? Think about it carefully. pwin is started by root, as is pppd. pppd does not know who is logging on until it has been started and negotiates a user/password. pwin *never* knows who is going to log on. Try using the ppp-up, ppp-down scripts for what you are trying to do, whatever that is. /* Daniel O'Callaghan */ /* HiLink Internet danny@hilink.com.au */ /* FreeBSD - works hard, plays hard... danny@freebsd.org */