On Friday 11 February 2005 12:13, akonstam@xxxxxxxxxxx wrote: > On Fri, Feb 11, 2005 at 05:41:17AM -0600, James Kaufman wrote: > As usual I am confused. On a ppp server , which I assume preload is > supposed to be, one starts mgetty by having a line in the /etc/initab > file as follows: > S0:2345:respawn:/sbin/mgetty -s 115200 /dev/ttyS0 > > mgetty runs all the time. I am not sure how you logged in to preload > without mgetty already running. Then there is a line in the > /etc/mgetty+sendfax/login.conf file the reads something like this: > /AutoPPP/ - a_ppp /usr/sbin/pppd auth -chap +pap -detach login > > that causes mgetty to answer the phone and do the authentication > using the information in the /etc/ppp/pap-secrets file. > > What are you really doing and why do you try to run mgetty after you > are logged in? OK as I have very little knowledge in this regard maybe you could offer some guidance. I have since learned that it is better to have mgetty start fro inittab, so that it respawns automatically. I have also learnt that my config dir is /etc/mgetty+sendfax/ which I was scared of initially, as I thought that was just for setting up a fax machine. I am using ssh to configure the Server which is in the server room. thats why I logged in with ssh. I am dialing up from the same PC for testing pruposes. I want to setup a dialin server with one access point only and it must be able to access the internet. The firewall I believe I can do by myself by masquerading ppp0 Here is where I am stuck now: from /var/log/mgetty.ttyS0 02/11 14:24:07 yS0 mgetty: experimental test release 1.1.30-Dec16 02/11 14:24:07 yS0 mgetty.c compiled at Feb 28 2004, 11:01:28 02/11 14:24:07 yS0 user id: 0, pid: 18990, parent pid: 1 02/11 14:24:07 yS0 reading configuration data for port 'ttyS0' 02/11 14:24:07 yS0 reading /etc/mgetty+sendfax/mgetty.config... 02/11 14:24:07 yS0 conf lib: read: 'port ttyS0' 02/11 14:24:07 yS0 section: port ttyS0, **found** 02/11 14:24:07 yS0 conf lib: read: 'init-chat "" AT&F1&C1&D2' 02/11 14:24:07 yS0 conf lib: read: 'speed 115200' 02/11 14:24:07 yS0 conf lib: read: 'debug 3' 02/11 14:24:07 yS0 conf lib: read: 'data-only y' 02/11 14:24:07 yS0 key: 'speed', type=0, flags=2, data=115200 02/11 14:24:07 yS0 key: 'switchbd', type=0, flags=1, data=0 02/11 14:24:07 yS0 key: 'direct', type=3, flags=1, data=FALSE 02/11 14:24:07 yS0 key: 'blocking', type=3, flags=1, data=FALSE 02/11 14:24:07 yS0 key: 'port-owner', type=1, flags=1, data=uucp 02/11 14:24:07 yS0 key: 'port-group', type=1, flags=1, data=uucp 02/11 14:24:07 yS0 key: 'port-mode', type=0, flags=1, data=432 02/11 14:24:07 yS0 key: 'toggle-dtr', type=3, flags=1, data=TRUE 02/11 14:24:07 yS0 key: 'toggle-dtr-waittime', type=0, flags=1, data=500 02/11 14:24:07 yS0 key: 'need-dsr', type=3, flags=1, data=FALSE 02/11 14:24:07 yS0 key: 'data-only', type=3, flags=2, data=TRUE 02/11 14:24:07 yS0 key: 'fax-only', type=3, flags=1, data=FALSE 02/11 14:24:07 yS0 key: 'modem-type', type=1, flags=1, data=auto 02/11 14:24:07 yS0 key: 'modem-quirks', type=0, flags=0, data=(empty) 02/11 14:24:07 yS0 key: 'init-chat', type=2, flags=3, data= AT&F1&C1&D2 \dATQ0V1H0 OK yS0 key: 'force-init-chat', type=2, flags=1, data= \d\d\d\d+++\d\d\d 02/11 14:24:07 yS0 key: 'post-init-chat', type=2, flags=0, data=(empty) 02/11 14:24:07 yS0 key: 'data-flow', type=4, flags=1, data=1 02/11 14:24:07 yS0 key: 'fax-send-flow', type=4, flags=1, data=7 02/11 14:24:07 yS0 key: 'fax-rec-flow', type=4, flags=1, data=7 02/11 14:24:07 yS0 key: 'modem-check-time', type=0, flags=1, data=3600 02/11 14:24:07 yS0 key: 'rings', type=0, flags=1, data=1 02/11 14:24:07 yS0 key: 'msn-list', type=2, flags=0, data=(empty) 02/11 14:24:07 yS0 key: 'get-cnd-chat', type=2, flags=0, data=(empty) 02/11 14:24:07 yS0 key: 'cnd-program', type=1, flags=0, data=(empty) 02/11 14:24:07 yS0 key: 'answer-chat', type=2, flags=1, data= ATA CONNECT \c 02/11 14:24:07 yS0 key: 'answer-chat-timeout', type=0, flags=1, data=80 02/11 14:24:07 yS0 key: 'autobauding', type=3, flags=1, data=FALSE 02/11 14:24:07 yS0 key: 'ringback', type=3, flags=1, data=FALSE 02/11 14:24:07 yS0 key: 'ringback-time', type=0, flags=1, data=30 02/11 14:24:07 yS0 key: 'ignore-carrier', type=3, flags=1, data=FALSE 02/11 14:24:07 yS0 key: 'issue-file', type=1, flags=1, data=/etc/issue 02/11 14:24:07 yS0 key: 'prompt-waittime', type=0, flags=1, data=500 02/11 14:24:07 yS0 key: 'login-prompt', type=1, flags=1, data=@ login: 02/11 14:24:07 yS0 key: 'login-time', type=0, flags=1, data=240 02/11 14:24:07 yS0 key: 'fido-send-emsi', type=3, flags=1, data=TRUE 02/11 14:24:07 yS0 key: 'login-conf-file', type=1, flags=1, data=login.config 02/11 14:24:07 yS0 key: 'fax-id', type=1, flags=1, data=49 115 xxxxxxxx 02/11 14:24:07 yS0 key: 'fax-min-speed', type=0, flags=1, data=0 02/11 14:24:07 yS0 key: 'fax-max-speed', type=0, flags=1, data=14400 02/11 14:24:07 yS0 key: 'fax-server-file', type=1, flags=0, data=(empty) 02/11 14:24:07 yS0 key: 'diskspace', type=0, flags=1, data=1024 02/11 14:24:07 yS0 key: 'notify', type=1, flags=1, data=faxadmin 02/11 14:24:07 yS0 key: 'fax-owner', type=1, flags=1, data=uucp 02/11 14:24:07 yS0 key: 'fax-group', type=1, flags=0, data=(empty) 02/11 14:24:07 yS0 key: 'fax-mode', type=0, flags=1, data=432 02/11 14:24:07 yS0 key: 'fax-spool-in', type=1, flags=1, data=/var/spool/fax/incoming:/tmp 02/11 14:24:07 yS0 key: 'debug', type=0, flags=2, data=6 02/11 14:24:07 yS0 key: 'statistics-chat', type=2, flags=0, data=(empty) 02/11 14:24:07 yS0 key: 'statistics-file', type=1, flags=0, data=(empty) 02/11 14:24:07 yS0 key: 'gettydefs', type=1, flags=1, data=n 02/11 14:24:07 yS0 key: 'term', type=1, flags=0, data=(empty) 02/11 14:24:07 yS0 check for lockfiles 02/11 14:24:07 yS0 checklock: no active process has lock, will remove 02/11 14:24:07 yS0 locking the line 02/11 14:24:07 yS0 makelock(ttyS0) called 02/11 14:24:07 yS0 do_makelock: lock='/var/lock/LCK..ttyS0' 02/11 14:24:07 yS0 lock made 02/11 14:24:08 yS0 tio_get_rs232_lines: status: RTS CTS DSR DTR 02/11 14:24:08 yS0 lowering DTR to reset Modem 02/11 14:24:08 yS0 tss: set speed to 115200 (10002) 02/11 14:24:08 yS0 tio_set_flow_control( HARD ) 02/11 14:24:08 yS0 waiting for line to clear (VTIME), read: 02/11 14:24:08 yS0 send: AT&F1&C1&D2[0d] 02/11 14:24:08 yS0 waiting for line to clear (VTIME), read: AT&F1&C1&D2[0d] [0d][0a]OK[0d][0a] 02/11 14:24:09 yS0 removing lock file 02/11 14:24:09 yS0 waiting... Here it just hangs and from tail -f /var/log/messages which runs in an xterm on my PC I get this: Feb 11 14:24:01 preload mgetty[18987]: login: '/etc/mgetty+sendfax/login.config' ignored, wrong permissions. Must be owned by 'root' and have mode '0600': I nvalid argument Feb 11 14:24:01 preload mgetty[18987]: data dev=ttyS0, pid=18987, caller='none', conn='33600/ARQ/V34/LAPM/V42BIS', name='', cmd='/bin/login', user='/AutoPPP /' Feb 11 14:24:01 preload login(pam_unix)[18987]: bad username [/AutoPPP/] Feb 11 14:24:01 preload login[18987]: FAILED LOGIN 1 FROM (null) FOR /AutoPPP/, Authentication failure Feb 11 14:24:04 preload login(pam_unix)[18987]: bad username [~ÿ#À}!}!} } 4}"}&} }*} } }%}&_Õ\213}'}"}(}"Qã] Feb 11 14:24:04 preload login[18987]: FAILED LOGIN 2 FROM (null) FOR ~ÿ#À}!}!} }4}"}&} }*} } }%}&_Õ\213}'}"}(}"Qã, Authentication failure Feb 11 14:24:07 preload login(pam_unix)[18987]: bad username [~ÿ#À}!] Feb 11 14:24:07 preload login[18987]: FAILED LOGIN 3 FROM (null) FOR ~ÿ#À}!, Authentication failure Feb 11 14:24:07 preload login(pam_unix)[18987]: bad username [}!} } 4}"}&} }*} } }%}&_Õ\213}'}"}(}"Qã] Feb 11 14:24:07 preload login[18987]: FAILED LOGIN SESSION FROM (null) FOR }!} }4}"}&} }*} } }%}&_Õ\213}'}"}(}"Qã, Authentication failure [root@preload log]# cat /etc/mgetty+sendfax/mgetty.config # The '/etc/mgetty/mgetty.config' file: # mgetty configuration file port ttyS0 init-chat "" AT&F1&C1&D2 speed 115200 debug 3 data-only y [root@preload log]# and [root@preload log]# cat /etc/mgetty+sendfax/login.config [root@preload log]# I know that there is some thing missing in login config I am just unsure of what I must put in it. OH and my options file /etc/mgetty+sendfax/dialin.config is empty -- -- Chadley Wilson Redhat Certified Technician Cert Number: 603004708291270 Pinnacle Micro Manufacturers of Proline Computers Proudly South African ISO9001:2000 Certified Production Line ======================================= LINUX - becuase I can do it my way. ========================================