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

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


Hi,

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 ptbtime1.ptb.de

 
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?

Oliver
-- 
... don't touch the bang bang fruit


More information about the freebsd-questions mailing list