From owner-freebsd-questions Wed Nov 26 22:32:46 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA02374 for questions-outgoing; Wed, 26 Nov 1997 22:32:46 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from uniqsite.com (uniqsite.com [206.14.149.33]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA02364 for ; Wed, 26 Nov 1997 22:32:41 -0800 (PST) (envelope-from timm@uniqsite.com) Received: from localhost (timm@localhost) by uniqsite.com (8.8.5/8.8.5) with SMTP id WAA13817; Wed, 26 Nov 1997 22:31:44 -0800 (PST) Date: Wed, 26 Nov 1997 22:31:44 -0800 (PST) From: Tim Moony To: Brian Somers cc: questions@freebsd.org Subject: Re: User PPP setup woe... (fwd) In-Reply-To: <199711270002.AAA04621@awfulhak.demon.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Thu, 27 Nov 1997, Brian Somers wrote: > I'm not sure what the question is. The error says that the invoking > user is not user id 0..... The man page with that version points out > that only uid 0 can run ppp in client mode. > > However, this model didn't suit a lot of people. The latest version > on http://www.freebsd.org/~brian is much more flexable if you wanna > download it. > Here's what I need: I have a couple of users (my family). I gave them static IPs so they can connect to their Win95 with null modem cables (unix is just too much for them). So I followed the instruction in user ppp setup in the handbook for static IPs. I have an entry in ppp.conf that looked like: ppp-user1: set device /dev/cuaa3 set speed 57600 set ifaddr aaa.bbb.ccc.ddd aaa.bbb.ccc.xxx www.xxx.yyy.zzz enable proxy In /etc/passwd I made the shell for user1 to /etc/ppp/ppp-shell. The following is what's in /etc/ppp/ppp-shell: ppp-shell ---------------------------------------------- #!/bin/sh IDENT=`echo $0 | sed -e 's/^.*-\(.*\)$/\1/'` CALLEDAS="$IDENT" TTY=`tty` if [ x$IDENT = xdialup ]; then IDENT=`basename $TTY` fi echo "PPP for $CALLEDAS on $TTY" echo "Starting PPP for $IDENT" exec /usr/sbin/ppp -direct $IDENT ========================================== When I login as the user, I got a line in /var/log/messages: Nov 26 22:23:58 uniqsite ppp[13756]: Warning: open_tun: No such file or directory. I am not sure what I did wrong. BTW, I am using ppp-971125 from ~brian directory.