Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Feb 2005 22:25:03 +0100
From:      Oliver Fuchs <oliverfuchs@onlinehome.de>
To:        freebsd-questions@freebsd.org
Subject:   run all external commands (!bg) as root in ppp.linkup
Message-ID:  <20050215212503.GA1562@oliverfuchs.onlinehome.de>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050215212503.GA1562>