Solved

mgetty + pppd + /etc/passwd authorisation

Posted on 1997-11-17
6
439 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
  • 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

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 160 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

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

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…

831 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