Solved

mgetty + pppd + /etc/passwd authorisation

Posted on 1997-11-17
6
447 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
Stressed Out?

Watch some penguins on the livecam!

 

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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

696 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