I don't know about changed premissions (though I had a similar problem -
with /dev/null - which I haven't tracked down yet). but why would you want
to kill -9 pppd ?
This will kill pppd and won't let it clean up after itself properly
better just SIGTERM it with
kill 'cat /var/run/ppp0.pid'
who knows - it may even solve your premissions problem ;-)
Oded
--
"Honesty is not only the best policy, it is rare enough today to make you
pleasantly conspicuous."
----- Original Message -----
From: "Erez Boym" <[EMAIL PROTECTED]>
To: "Linux-IL" <[EMAIL PROTECTED]>
Sent: Saturday, June 02, 2001 23:42
Subject: pppd Q
> Hi,
>
> I'm trying to write a script which will disconnect my
> pppd when my downloader (Web Downloader for X 1.18)
> finishes.
>
> My script looks like this :
> kill -9 'cat /var/run/ppp0.pid'
>
> The thing is, that my port /dev/ttyS2 changes
> permissions when I use that script. It is usually set
> to rw-rw-rw which enables me to write to it and after
> running the script it changes to rw-r--r-- which makes
> me unable to use it unless I am logged as root.
>
> The other thing is that my ttyS2's group is uucp while
> all the other ttySs belong to group tty. Thats the way
> RedHar had installed it. Is there a reason for that ?
>
> I don't know the Linux ppp mechanism well enough to
> understand y it changes permissions ( and I will
> appreciate an explanation) but is there anything wrong
> with killing my pppd the way I do ?
>
> Thanks
>
> Erez
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35
> a year! http://personal.mail.yahoo.com/
>
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
>
>
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]