run all external commands (!bg) as root in ppp.linkup

Oliver Fuchs oliverfuchs at
Tue Feb 15 21:25:16 GMT 2005


on FreeBSD 5.3 I am using ppp in interactive mode with a ppp.linkup script
to perform some commands (sendmail and ntpdate):

 !bg sendmail -L sm-msp-queue -Ac -q
 !bg ntpdate

In man ppp I have seen:

     All external commands (executed
     via the "shell" or "!bg" commands) are executed as the user id that
     invoked ppp. 

So the only way for a normal user to run this commands successfully in ppp.linkup are per
sudo ppp or is there another chance to run these commands?

... don't touch the bang bang fruit

More information about the freebsd-questions mailing list