?
Solved

mgetty + pppd + /etc/passwd authorisation

Posted on 1997-11-17
6
Medium Priority
?
457 Views
Last Modified: 2012-05-04
I am trying to set up my linux box to accept ppp connections using the /etc/passwd file for authorisation. I can get mgetty to detect the that the call is a ppp call and spawn pppd, but i can't get pppd authorisation working.

If I have this in my /usr/local/etc/mgetty+sendfax/login.conf

/AutoPPP/ a_ppp /usr/sbin/pppd

then someone can dial in, but no authentication happens.


if I have this,

/AutoPPP/ a_ppp /usr/sbin/pppd auth -chap +pap login

which is what I think should be happening, authentication always fails, even though the correct user/passwd (from /ec/passwd) is used.

I Suspect what I need is something in my /etc/ppp/pap-secrets but I can't work out what. Do I need a line for each user I want to be able to do ppp? or is there one magic line for all users?

Also once I have authorisation going I would like to track how much data is being sent to each users. How would I do that?

0
Comment
Question by:jwd111797
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 

Author Comment

by:jwd111797
ID: 1586860
Edited text of question
0
 

Expert Comment

by:rooster
ID: 1586861
Are you supplying ip-numbers on one of the ends of the ppp-link? I think one of the pppd's needs to supply ip-numbers.
0
 

Author Comment

by:jwd111797
ID: 1586862
This response wasnt an answer, but a question, the answer to
which is that yes, at the moment the remote end is specifying
an IP; in any case a problem relating to specificying an ip
wouldnt be affected by whether or not my pppd is attempting
authorisation.
0
WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

 

Expert Comment

by:rooster
ID: 1586863
What command-line do you use at the remote end?
0
 

Author Comment

by:jwd111797
ID: 1586864
The remote end is a win95 client with the ip hardwired, and
user name/password as in the /etc/password file.
0
 

Accepted Solution

by:
rooster earned 320 total points
ID: 1586865
Hmm, that should work then, like it does here. The only thing I can think of is that you are using the shadow password suite and your pppd isn't compiled with shadow passwords. Or the reverse situation.
0

Featured Post

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question