OK. I think I see what you're up to. If I understand it, I see two possible
solutions.
1. Set the suid bit on pppd . "chmod +s /whatever_the_path_is/pppd". Then
anyone can run it. Sometimes a bit of a security problem, but seems okay in
this application.
2. Don't have the user start pppd; have mgetty do it. I don't remember
exactly how to do it with mgetty, but years ago, I was able to set up agetty
to do this.
BTW, thanks for including the Win98 script. The server end of this seemed
pretty straightforward to me, but I didn't see before this how to do the
client end.
At 08:07 AM 4/19/00 +0200, TAG wrote:
>Hi ALL,
>
>OK - sa usual - I write to the list and always invariably forget to add
>pertinent information :)
>
>My apologies to all ...
>
>OK - This is what I want to have done:
>
>client call server - authenticates with server to do callback - server
>hangs up and call client back - authenticates and PPP connection is
>established.
>
>I have worked thru all the above - except running pppd as non root user??
>
>I have set-up server side dial-in - that works - I can dial-in and get a
>normal login as if by telnet. That works ok - except when I need to
>redial - sometimes it does not work - but we are getting off the real
>problem...
>
>
>OK - next I set up a dial-back user in /etc/mgetty+sendfax/login.config -
>called user_callback - before the /AutoPPP/ section in the login.config
>scripty (otherwise the calback does not work ..) with the following line:
>
>user_callback - - /usr/sbin/callback -S 253
>
>the 253 is the number to callback - this is increasing the security - so
>other people cannot dial-in and put their own number in !!
>
>OK - I have a script that runs on the Win98 side - and the Linux client
>side:
>
>Win98 script is as follows:
>
> proc main
> waitfor "ogin: "
> transmit "user_callback^M"
> waitfor "RING"
> transmit "ATA^M"
> waitfor "ogin: "
> transmit $USERID
> transmit "^M"
> waitfor "assword: "
> transmit $PASSWORD
> transmit "^M"
> waitfor "> "
> transmit "pppd^M"
> endproc
>
>This script runs well - except for the second last line - which gives the
>error:
>
>Apr 18 17:28:21 tag pppd[3120]: must be root to run pppd, since itis not
>setuid-root
>
>This is where the problem lies - HOW to run ppd as another user -other
>than root?????
>
>I hope this explains everything???
>
>Thanks again
>Tonino
>
>
>
------------------------------------"Never tell me the odds!"---
Ray Olszewski -- Han Solo
Palo Alto, CA [EMAIL PROTECTED]
----------------------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs