Solved

mgetty + pppd + /etc/passwd authorisation

Posted on 1997-11-17
6
431 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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…
This video discusses moving either the default database or any database to a new volume.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

708 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now