Re: ip-up question
On Mon, 14 Jul 1997, Jim Foltz wrote:
> Is it safe to put these lines in the /etc/ppp/ip-up scripts? $6 is passed
> to the script using the ipparam option of pppd and is the name of the
> user initiating the ppp link.
> if [ -e "/home/$6/.ip-up" ]; then
> cd /home/"$6"
> . .ip-up
No because /etc/ppp/ip-up is executed with root permission so the
script /home/<user>/.ip-up would be executed with root permission !!!
Certainly not something to allow.
Maybe doing a su before would be enough to shut the security
if [ -e "/home/$6/.ip-up" ]; then
su $6 -c .ip-up
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
Trouble? e-mail to email@example.com .