From owner-freebsd-questions Wed Nov 26 22:24:11 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA01833 for questions-outgoing; Wed, 26 Nov 1997 22:24:11 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from milehigh.denver.net (milehigh.denver.net [204.144.180.2]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA01802 for ; Wed, 26 Nov 1997 22:24:06 -0800 (PST) (envelope-from jdc@milehigh.denver.net) Received: (from jdc@localhost) by milehigh.denver.net (8.8.7/8.8.5) id VAA22200; Wed, 26 Nov 1997 21:40:45 -0700 (MST) Message-ID: <19971126214045.57704@denver.net> Date: Wed, 26 Nov 1997 21:40:45 -0700 From: John-David Childs To: questions@freebsd.org Subject: Re: User PPP setup woe... References: <038301bcfa2a$b97d5360$1d4bb2cc@davidvon> <3.0.3.32.19971126103330.0069d824@shellhost.dc.infi.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.79 In-Reply-To: <3.0.3.32.19971126103330.0069d824@shellhost.dc.infi.net>; from Ron Steele on Wed, Nov 26, 1997 at 10:33:30AM -0500 Organization: Enterprise Internet Solutions Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Ick!! The problem with modifying the code to make ppp seteuid 0 is that you'll have to patch the source every time it's updated. IMHO, a far better way to run ppp as root is to install sudo (even on a single-user workstation) and get used to typing sudo ppp -auto This has the added benefit of getting you used to using sudo instead of logging in as or su'ing to root :-) Then, on the "real" machines you administrate at work, using sudo becomes second nature. Sudo is a sysadmin's friend...it's in the ports collection (/usr/ports/net). Configured properly (not the default configuration, if I remember correctly) sudo can be quite humorous 8-) -- John-David Childs (JC612) Enterprise Internet Solutions Systems Administration @denver.net/internet-coach/@ronan.net & Network Engineering 1031 S. Parker Rd. #I-8 Denver, CO 80231 Our country has plenty of good five-cent cigars, but the trouble is they charge fifteen cents for them. On Wednesday November 26, 1997, Ron Steele had this to say about "Re: User PPP setup woe...": > 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