From owner-freebsd-isp Thu Jun 19 13:26:23 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id NAA16056 for isp-outgoing; Thu, 19 Jun 1997 13:26:23 -0700 (PDT) Received: from mirage.nlink.com.br (mirage.nlink.com.br [200.238.120.3]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id NAA15938 for ; Thu, 19 Jun 1997 13:23:05 -0700 (PDT) Received: from mirage.nlink.com.br (localhost.nlink.com.br [127.0.0.1]) by mirage.nlink.com.br (8.8.5/8.8.5) with ESMTP id RAA27512 for ; Thu, 19 Jun 1997 17:15:26 -0300 (EST) Message-ID: <33A9935E.8BA55934@nlink.com.br> Date: Thu, 19 Jun 1997 17:15:26 -0300 From: Paulo Fragoso Organization: Nlink Com. & Cons. X-Mailer: Mozilla 4.0b5C (X11; I; FreeBSD 2.1.7-RELEASE i386) MIME-Version: 1.0 To: freebsd-isp@freebsd.org Subject: PPPD whith +pap and login (whoami?) X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, 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? Thanks, Paulo.