Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Nov 1997 10:33:30 -0500
From:      Ron Steele <ron@dc.infi.net>
To:        questions@FreeBSD.ORG
Subject:   Re: User PPP setup woe...
Message-ID:  <3.0.3.32.19971126103330.0069d824@shellhost.dc.infi.net>
In-Reply-To: <Pine.BSF.3.96.971125221514.4344A-100000@uniqsite.com>
References:  <038301bcfa2a$b97d5360$1d4bb2cc@davidvon>

next in thread | previous in thread | raw e-mail | index | archive | help
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?3.0.3.32.19971126103330.0069d824>