> Maybe I'm just being boneheaded, but...
> 
> >   ! sudo ipfw add 40000 divert 12345 all from any to any via INTERFACE
> >   ! sudo /usr/local/bin/tcpmssd -p 12345 -i INTERFACE
> 
> I was under the (tested & confirmed) impression that programs executed by
> ppp are run under uid 0. Eg. I don't use "sudo" but the ipfw rule is added
> anyway, and tcpmssd is run as root.
> 
> But maybe a sudo environment brings something else? That could explain a lot
> right there.
> 
> --Renaud

ppp will run programs as the user id that invoked ppp rather than 
using the effective user id (ie, it runs things as *you*, not *root*).

AFAIK, sudo will not muck about with your environment....

A good ``first step'' is to run

  ! sh -c "/usr/local/bin/tcpmssd -p 12345 -i INTERFACE >/tmp/log 2>&1"

so that you can get to see any error messages - ppp redirects I/O to 
/dev/null by default.

-- 
Brian <[EMAIL PROTECTED]>                        <brian@[uk.]FreeBSD.org>
      <http://www.Awfulhak.org>                   <brian@[uk.]OpenBSD.org>
Don't _EVER_ lose your sense of humour !




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to