On Monday 08 January 2001 15:54, Jonathan Wilson wrote:
Howdy,
I asked the other day what the best way to set up a dialup server was (the goal being to get a remote shell).
The uanimous answer was to use mgetty.
I now have mgetty set up and working just fine, with one problem: I don't know how to use it as a shell.
I know it works because I set up wvdial on our Red Hat box with my username and password and it dialed up and connected just fine.
You don't need wvdial. mgetty answers the phone just fine and presents the login to the caller. If the caller has a correct account name and password the login pgm hands off to the shell designated in the user account when it was step up. Sometimes that shell is just bash. Other times it is a bash script, for example, that is is indicated by /home/<acctname>/scriptname in passwd. scriptname is marked executable, of course. When the exit command is encountered in scriptname that is the same as loging out. JLK
However, it tries to start ppp (which isn't really what I need, I don't think) and then after a bit the pppd dies because (of course) no connection is made. So basically, I can connect (thus I know mgetty is working) but I can't figure out how to get a shell out of the deal.
Can anyone explain how to get a shell prompt? Am I even supposed to be using wvdial or should I be using some shell script? If a shell script could I see an example?
TIA,
---------------------------------------- Jonathan Wilson System Administrator
Cedar Creek Software http://www.cedarcreeksoftware.com
Central Texas IT http://www.centraltexasit.com
-- Scientific theories, according to Sir Karl Popper, can be "falsified," or proven wrong, by experiment. Unscientific theories -Marxist dialectical history and Freudian psychology were Popper's favorites- are formed in such a way that they cannot be falsified by data.