Note: forwarded message attached. __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com
Dear All: I am back again! These days I just try to setup AutoPPP with mgetty on my linux box. Now, I still have problem. The content below is the detail description of my setup and problem. Setup of my linux box: 1. Before I compile the mgetty I have set the "Makefile" as the line below CFLAGS=-02 -Wall -pipe -DAUTO_PPP 2. I still change the "policy.h" as the line below # define LOGIN_CFG_FILE "login.config" 3. After I compiled the mgetty, I changed the "login.config" as the line below: /AutoPPP/ - - /usr/sbin/pppd file /etc/ppp/options.server 4. I still set the "inittab" as the line below S0:2345:respawn:/temp/mgetty-1.0.0/mgetty ttyS0 -D /dev/ttyS0 ( note: I put the mgetty in the directory in :/temp/mgetty-1.0.0/ ) login status: Now when I try to login from a win95 with setting "Bring up terminal window after dialing", I can success login with the username and password in "passwd" file. The "/var/log/message" record my login as below: Feb 21 19:55:50 HP1 PAM_pwdb[569]: (login) session opened for user maxz by (uid=0) Feb 21 19:55:50 HP1 login -- maxz [569]: DIALUP AT ttyS0 BY maxz Feb 21 19:55:50 HP1 login -- maxz [569]: LOGIN ON ttyS0 BY maxz Feb 21 19:55:56 HP1 kernel: registered device ppp0 Feb 21 19:55:56 HP1 pppd[570]: pppd 2.3.5 started by maxz, uid 502 Feb 21 19:55:56 HP1 pppd[570]: Using interface ppp0 Feb 21 19:55:56 HP1 pppd[570]: Connect: ppp0 <--> /dev/ttyS0 Feb 21 19:55:56 HP1 pppd[570]: Warning - secret file /etc/ppp/pap-secrets has world and/or group access Feb 21 19:55:59 HP1 pppd[570]: Cannot determine ethernet address for proxy ARP Feb 21 19:55:59 HP1 pppd[570]: local IP address 242.10.5.100 Feb 21 19:55:59 HP1 pppd[570]: remote IP address 192.168.1.2 Feb 21 19:56:02 HP1 pppd[570]: CCP terminated by peer Feb 21 19:56:02 HP1 pppd[570]: Compression disabled by peer. Feb 21 20:06:59 HP1 pppd[570]: LCP terminated by peer Feb 21 20:07:00 HP1 pppd[570]: Hangup (SIGHUP) Feb 21 20:07:00 HP1 pppd[570]: Modem hangup Feb 21 20:07:00 HP1 pppd[570]: Connection terminated. Feb 21 20:07:01 HP1 pppd[570]: Exit. If I try to login exactly as the username and password mention above without the setting "Bring up terminal window after dialing", I can not login and the "/var/log/message" record my attempt as below: Feb 21 20:51:58 HP1 PAM_pwdb[814]: bad username [/AutoPPP/] Feb 21 20:51:58 HP1 login[814]: FAILED LOGIN 1 FROM (null) FOR /AutoPPP/, User not known to the underlying authentication module Feb 21 20:52:01 HP1 PAM_pwdb[814]: bad username [~^?}#@!}!}"} }7}"] Feb 21 20:52:01 HP1 login[814]: FAILED LOGIN 2 FROM (null) FOR ~^?}#@!}!}"} }7}", User not known to the underlying authentication module Feb 21 20:52:01 HP1 PAM_pwdb[814]: bad username [}&} }*} } }%}&} 4R}}'}"}(}"}-}#}&W}<~] Feb 21 20:52:01 HP1 login[814]: FAILED LOGIN 3 FROM (null) FOR }&} }*} } }%}&} 4R}}'}"}(}"}-}#}&W}<~, User not known to the underlying authentication module Feb 21 20:52:04 HP1 PAM_pwdb[814]: bad username [~^?}#@!}!}#} }7}"}&} }*} } }%}&} ] Feb 21 20:52:04 HP1 login[814]: FAILED LOGIN SESSION FROM (null) FOR ~^?}#@!}!}#} }7}"}&} }*} } }%}&} , User not known to the underlying authentication module My analysis: For some reason, my linux box use /AutoPPP/ as the user name when I try to login automatically. Then, it return some information to make the win95 misunderstand that information to proceed login process. So, linux box receive several meaningless characters as user name. After several times of try to login Linux box send a hung up signal. The help I need: Would you please tell me what wrong I make? And help me to detect the bugs. I really appreciate your valuable help. Sincerely Max Zhang __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com
