Date: Wed, 26 Nov 1997 21:40:45 -0700 From: John-David Childs <jdc@nterprise.net> To: questions@freebsd.org Subject: Re: User PPP setup woe... Message-ID: <19971126214045.57704@denver.net> 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 References: <038301bcfa2a$b97d5360$1d4bb2cc@davidvon> <Pine.BSF.3.96.971125221514.4344A-100000@uniqsite.com> <3.0.3.32.19971126103330.0069d824@shellhost.dc.infi.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <whatever> 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 <ron@dc.infi.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19971126214045.57704>