Creating Dial-Up Accounts

  I am relatively new to Linux and have had the burden of creating my company's web server. I've found numerous HOWTOs which have helped tremendously as far as IP-Masq, setting up serial lines, and PPP go. Yet I have not found one document that explains how to create dail-up accounts for users. Am I missing the obvious here?
  Thank you in advance.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Serial-HOWTO explains how it can be done.
In your /etc/inittab, you will have entries for the getty's you run on your virtual consoles. Out of the box, you will probably have 6, on tty1 through tty6.

You need to run a getty that listens for logins from the serial port to which your modem is attached. So, if your modem is on COM1 under DOS, you need to run a getty on ttyS0. The settings in inittab will control the baud rate, etc, so when you modem picks up, your dial in user should just get a terminal window with a login prompt. It's exactly the same as setting up a dumb terminal connected via a serial line, except your serial connection goes between two modems.

If you need more users, add phone lines, com ports, modems and getty's to accomodate. The Serial HOWTO will provide a lot of the info you need.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bbrowderAuthor Commented:
OK, thank you. That worked nicely. I'm still having trouble, though. I am dialing in from Windows95 using the dial-up networking "feature". I have the server type set to "PPP:Windows 95,Windows NT 3.5,Internet". When I dial in to the Linux box I eventually get a message informing me that a proper set of protocols could not be established, or some such nonsense.
  Perhaps I should provide a little more info. The goal I'm seeking is to use Win95 dial-up networking to call the Linux box and establish a good PPP connection (Just like I do when I dial-up my ISP). Then I want to bring up Netscape, type in the URL of the test page on the Linux box and view it. When the Pipeline is activated I will need it to see any URL with a valid DNS entry. I have poured through so many HOWTOs I think that I should go blind if I read another one. I have had little success following them.
  Thank you in advance.
This is usually some sort of authentication screw up with win95.

Try the following. Set up a dial up networking connection in Win95, and then go into it's properties. Check the box for 'bring up terminal window after dialing.' What you should then see is a black terminal window pop up on the win95 box, after the modems have negotiated. You should get a login prompt in this window, through which you can login to your linux box. After having logged in, you need to type something to start PPP off for you.

At the moment, you have a getty running, which will just give you a login to a shell account, nothing more. You want a PPP link, and IP routing done for you on the Linux box. So, you can log in through a terminal window, start PPP, then close the terminal window - at this stage there will be PPP on the Linux end, and win95 should successfully connect. When you've got this to work, you can change the account on the linux box, so it runs pppd instead of a shell, and then script the connection on the Win95 end. This should make it all seamless.

Possibly a better solution (though I confess to being unsure about this one) is to specify pppd in your /etc/inittab, instead of a getty, to run on the appropriate serial port. If you set this up right, I imagine you could get PAP or CHAP authentication going for the remote clients. The PPP HOWTO has some info on setting up a PPP server. The first method may be simpler for you at this stage though....

Good luck.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.