Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-24-2004, 07:05 PM   #1
LQ Newbie
Registered: Dec 2003
Location: New Zealand
Distribution: Mandrake 9.1
Posts: 4

Rep: Reputation: 0
PAP configuration

im having great trouble trying to connect to the internet and I think my main problem is that I cant follow and setup what is being said in the help file of my isp. Can someone help me follow it in more “newbie” friendly terms, please, im sick of having to reboot into windows to access the net.

Here is the help file from my isp ClearNet

A. PAP configuration
CLEAR Net uses PAP (Password Authentication Protocol) to authenticate a
user trying to login. PAP is one of the protocols in the PPP suite, which is used
during a PPP session. With PAP, PPP first starts an LCP session, then
proceeds to a PAP session.
Which means with the PAP authentication scheme, after your modem has
succeeded the low-layer negotiation, the LCP session starts immediately.
There is no “login:” prompt or plain text used. Thus, a chat script which
works with other providers, will not work.
This is because, while a chat program waits until the network access server
sends your computer the word containing “ogin:”, a PAP configured Network
Access Server never sends that word to you. The chat script you are going to
use needs to look like as follows;
“” ATZ
OK ATDT9123050

Note that the authentication triggers (the words “ogin” and “word” ) used by
the Network Access Server has been removed - meaning PAP will take care of
the process.
This script enables the chat program to exit as soon as it gets the
“CONNECT” response from your modem, which is a sign that your modem
had succeeded negotiation with the CLEAR Net server. When the chat script
has finished, the PPP session starts from the LCP phase and then to the PAP
Now, PAP configuration for pppd. There are two ways to activate PAP in
pppd. One is to use the standard /etc/ppp/pap-secrets file, and the other is to
use a file that you specify. The file can be found at:
The /etc/ppp/pap-secrets file stores your login_id and password in a secure
manner in that the owner of this file is “root” with read/write access only given
to anyone with root access(permission 600 - note that pppd should have setuid
to root). The contents of the file are :- your login_id, machines to be
authenticated, and your password (which is called “secret”) in one line, each
separated by whitespace(s). The hash symbol # is used to mark a line only used
to comment. So, the file looks like :
# This is a sample pap-secret file
# login_id machine secret
ckent * superman
- where ckent is your login id and superman is your password. * is a wildcard
to match any machine. * is used because your machine name is not known to
pppd will not automatically initiate PAP even if you placed pap-secrets in the
regular location. You must tell pppd of your intention to use PAP by giving the
“user” option. The “user” option tells pppd to use the name specified by this
option in PAP negotiation. You need to be authenticated as “ckent”, so “user”
should be “ckent”. Then, a command line becomes like this;
pppd user ckent connect 'chat -v -f .chat' /dev/cua1
Naturally, ckent must appear in the first column of the /etc/ppp/pap-secrets

Personal secrets file
The other way is to use any file, such as your personal (not root's)
file, eg ~/secret. This would only be useful for users who do not have root
permission to create a pap-secrets file. The file consists of two lines. First line
stores your login id, and the second stores your password. Thus the file looks
To activate this feature in pppd, you use the “+ua <filename>” option. With
this the command line looks like :
pppd +ua ~/secret connect 'chat -v -f .chat' /dev/cua1
Note that this feature may be obsolete on your system. Check your pppd man
Now that PAP is configured, you should be able to connect to CLEAR Net.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PAP/CHAP Netscape FlameKhan Linux - Networking 8 02-03-2005 10:51 PM
pap-secrets emarkov Linux - Security 1 02-01-2005 02:41 PM
Pppoe-server Fail With Pap-secrets: Rino Linux - Networking 1 11-10-2004 01:36 PM
PAP failure deadhead Linux - Newbie 2 11-01-2003 03:07 AM
pppoeserver with pap/chap know Linux - Networking 0 06-07-2003 10:14 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration