From owner-freebsd-questions Wed Nov 26 07:34:03 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA24678 for questions-outgoing; Wed, 26 Nov 1997 07:34:03 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from codie04.ops.aol.com (codie04.ops.aol.com [152.163.8.11]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id HAA24664 for ; Wed, 26 Nov 1997 07:34:00 -0800 (PST) (envelope-from ron@dc.infi.net) Received: from [152.163.101.11] by codie04.ops.aol.com with SMTP (1.38.193.5/16.2) id AA22718; Wed, 26 Nov 1997 10:33:25 -0500 Message-Id: <3.0.3.32.19971126103330.0069d824@shellhost.dc.infi.net> X-Sender: ron@shellhost.dc.infi.net (Unverified) X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.3 (32) Date: Wed, 26 Nov 1997 10:33:30 -0500 To: questions@FreeBSD.ORG From: Ron Steele Subject: Re: User PPP setup woe... In-Reply-To: References: <038301bcfa2a$b97d5360$1d4bb2cc@davidvon> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk At 10:18 PM 11/25/97 -0800, Tim Moony wrote: > > >Oh no no no... What I intended to do was to allow them to connect through >a serial cable and be able to use the ppp command. > >The trouble is, ppp seems to only allow user with user no 0 to use it. >What did I do wrong? > > I am assuming that you want to be able startup ppp as non-0, as opposed to talking over the link once connected. The newer ppp (2.2.5) has new protections in it so you MUST be root to start up the link. I found this to be a pain on my single user workstion (although I am sure all the folk using freebsd as ISP's appreciate it). What I did was grab the code from Brian Sommer's web page at freebsd.org and added a line to change the effective uid to 0. Works like a champ. See man seteuid. You can do this just about anywhere in the top of the program. Seems to me like this ought to be a compiler option. Of course the program must be installed with the set uid bit set, but that is the default anyway. Ron