TSL 1.5 + mgetty + pppd a problem medzi stolickou a klavesnicou (dlhe).

bl bl na mavipet.sk
Středa Červenec 31 14:26:42 CEST 2002


Zdravim!

Mam problem pri konfiguracii dialin servera. Uz som to parkrat robil ale
vzdi to bol RH a nemal som ziadne zavazne problemy. Teraz som presiel na
TSL (Trustix Secure Linux) Vsetky pouzite sucasti okrem mgetty su z
original distribucie (1.5) mgetty som stiahol z netu prekompilovane pre
trustix1.5.

Teraz problem:
1.) rozchodil som ppp spojenie na dialout linke. Bez problemu.
2.) rozchodil som dialin pripojenie terminalu pomocou mgetty. Bez  problemou
3.) pokusal som sa rozchodit dialin pre ppp rovnako ako na RH 6.2
(Trustix je odvodenina) najprv bol problem z PAM configuraciou ktora
mala lebo vyzadovala pam modul ktori trustix nevlastni. tak som to upravyl:

/etc/pam.d/ppp:
-----------------------------
#%PAM-1.0
auth       required     pam_nologin.so
auth       required     pam_pwdb.so shadow md5
account    required     pam_pwdb.so
session    required     pam_pwdb.so
-----------------------------

povodne ppp:
-----------------------------
auth       required     pam_nologin.so
auth       required     pam_stack.so service=system-auth
account    required     pam_stack.so service=system-auth
session    required     pam_stack.so service=system-auth
-----------------------------

Ale napriek tomu to stale roby problemy :(
jednotlive konfiguraky:
mgetty:

/etc/mgetty-sendfax/dialim.conf:
----------------------

----------------------

/etc/mgetty-sendfax/login.conf:
----------------------
/AutoPPP/ -     ppp     /usr/sbin/pppd auth -chap +pap login debug
*       -       -       /bin/login @
----------------------

/etc/mgetty-sendfax/mgetty.config:
----------------------
debug 4
speed 38400

port ttyS0
  data-only y

port ttyS1
  data-only y
----------------------

konfiguracia pppd:
/etc/ppp/options:
----------------------
debug 
crtscts
lock
proxyarp
mtu 296
auth
----------------------

/etc/ppp/options.ttyS0
----------------------
1.2.8.1:1.2.8.200
----------------------

uzivatel ppp ma v passwd takyto riadok:
----------------------
ppp:x:15:200:PPP User:/tmp:/etc/ppp/ppplogin
----------------------

/etc/ppp/ppplogin:
----------------------
#!/bin/sh
#ppplogin
mesg n
stty -echo
exec pppd -detach silent modem crtscts
----------------------

Na zaver este dokladam log spojenia (pripajajuci sa pocitac je v
poriadku skusal som sa pripojit na ine serveri tam funguje spravne)
V logu ma znepokojuju niektore hlasky z ktorich mam dojem ako keby
mgetty nemohlo komunikovat z modemom.

messages:Jul 31 15:49:59 fw802 mgetty[672]: mgetty: experimental test
release 1.1.28-Jan10: Success
Jul 31 15:49:59 fw802 mgetty[672]:  mgetty.c compiled at Apr 14 2002,
18:15:52: Success
Jul 31 15:49:59 fw802 mgetty[672]:  user id: 0, parent pid: 1: Success
Jul 31 15:49:59 fw802 mgetty[672]:  reading configuration data for port
'ttyS0': Success
Jul 31 15:49:59 fw802 mgetty[672]:  reading
/etc/mgetty+sendfax/mgetty.config...: Success
Jul 31 15:49:59 fw802 mgetty[672]:  conf lib: read: 'debug 4': Success
Jul 31 15:49:59 fw802 mgetty[672]:  conf lib: read: 'speed 38400': Success
Jul 31 15:49:59 fw802 mgetty[672]:  conf lib: read: 'port ttyS0': Success
Jul 31 15:49:59 fw802 mgetty[672]:  section: port ttyS0, **found**: Success
Jul 31 15:49:59 fw802 mgetty[672]:  conf lib: read: 'data-only y': Success
Jul 31 15:49:59 fw802 mgetty[672]:  conf lib: read: 'port ttyS1': Success
Jul 31 15:49:59 fw802 mgetty[672]:  section: port ttyS1, ignore: Success
Jul 31 15:49:59 fw802 mgetty[672]:  conf lib: read: 'data-only y': Success
Jul 31 15:49:59 fw802 mgetty[672]:  key: 'speed', type=0, flags=2,
data=: Success
Jul 31 15:49:59 fw802 mgetty[672]:  key: 'switchbd', type=0, flags=1,
data=: Success
Jul 31 15:49:59 fw802 mgetty[672]:  key: 'direct', type=3, flags=1,
data=: Success
Jul 31 15:49:59 fw802 mgetty[672]:  key: 'blocking', type=3, flags=1,
data=: Success
Jul 31 15:49:59 fw802 mgetty[672]:  key: 'port-owner', type=1, flags=1,
data=: Success
Jul 31 15:49:59 fw802 mgetty[672]:  key: 'port-group', type=1, flags=1,
data=: Success
Jul 31 15:49:59 fw802 mgetty[672]:  key: 'port-mode', type=0, flags=1,
data=: Success
Jul 31 15:49:59 fw802 mgetty[672]:  key: 'toggle-dtr', type=3, flags=1,
data=: Success
Jul 31 15:49:59 fw802 mgetty[672]:  key: 'toggle-dtr-waittime', type=0,
flags=1, data=: Success
Jul 31 15:49:59 fw802 mgetty[672]:  key: 'need-dsr', type=3, flags=1,
data=: Success
Jul 31 15:49:59 fw802 mgetty[672]:  key: 'data-only', type=3, flags=2,
data=: Success
Jul 31 15:49:59 fw802 mgetty[672]:  key: 'fax-only', type=3, flags=1,
data=: Success
Jul 31 15:49:59 fw802 mgetty[672]:  key: 'modem-type', type=1, flags=1,
data=: Success
Jul 31 15:49:59 fw802 mgetty[672]:  key: 'modem-quirks', type=0,
flags=0, data=: Success
Jul 31 15:49:59 fw802 mgetty[672]:  key: 'init-chat', type=2, flags=1,
data=: Success
Jul 31 15:49:59 fw802 mgetty[672]:  key: 'force-init-chat', type=2,
flags=1, data=: Success
Jul 31 15:49:59 fw802 mgetty[672]:  key: 'post-init-chat', type=2,
flags=0, data=: Success
Jul 31 15:49:59 fw802 mgetty[672]:  key: 'data-flow', type=4, flags=1,
data=: Success
Jul 31 15:49:59 fw802 mgetty[672]:  key: 'fax-send-flow', type=4,
flags=1, data=: Success
Jul 31 15:49:59 fw802 mgetty[672]:  key: 'fax-rec-flow', type=4,
flags=1, data=: Success
Jul 31 15:49:59 fw802 mgetty[672]:  key: 'modem-check-time', type=0,
flags=1, data=: Success
Jul 31 15:49:59 fw802 mgetty[672]:  key: 'rings', type=0, flags=1,
data=: Success
Jul 31 15:49:59 fw802 mgetty[672]:  key: 'msn-list', type=2, flags=0,
data=: Success
Jul 31 15:49:59 fw802 mgetty[672]:  key: 'get-cnd-chat', type=2,
flags=0, data=: Success
Jul 31 15:50:00 fw802 mgetty[672]:  key: 'deny-chat', type=2, flags=0,
data=: Success
Jul 31 15:50:00 fw802 mgetty[672]:  key: 'cnd-program', type=1, flags=0,
data=: Success
Jul 31 15:50:00 fw802 mgetty[672]:  key: 'answer-time', type=1, flags=0,
data=: Success
Jul 31 15:50:00 fw802 mgetty[672]:  key: 'answer-chat', type=2, flags=1,
data=: Success
Jul 31 15:50:00 fw802 mgetty[672]:  key: 'answer-chat-timeout', type=0,
flags=1, data=: Success
Jul 31 15:50:00 fw802 mgetty[672]:  key: 'autobauding', type=3, flags=1,
data=: Success
Jul 31 15:50:00 fw802 mgetty[672]:  key: 'ringback', type=3, flags=1,
data=: Success
Jul 31 15:50:00 fw802 mgetty[672]:  key: 'ringback-time', type=0,
flags=1, data=: Success
Jul 31 15:50:00 fw802 mgetty[672]:  key: 'ignore-carrier', type=3,
flags=1, data=: Success
Jul 31 15:50:00 fw802 mgetty[672]:  key: 'issue-file', type=1, flags=1,
data=: Success
Jul 31 15:50:00 fw802 mgetty[672]:  key: 'prompt-waittime', type=0,
flags=1, data=: Success
Jul 31 15:50:00 fw802 mgetty[672]:  key: 'login-prompt', type=1,
flags=1, data=: Success
Jul 31 15:50:00 fw802 mgetty[672]:  key: 'login-time', type=0, flags=1,
data=: Success
Jul 31 15:50:00 fw802 mgetty[672]:  key: 'fido-send-emsi', type=3,
flags=1, data=: Success
Jul 31 15:50:00 fw802 mgetty[672]:  key: 'login-conf-file', type=1,
flags=1, data=: Success
Jul 31 15:50:00 fw802 mgetty[672]:  key: 'fax-id', type=1, flags=1,
data=: Success
Jul 31 15:50:00 fw802 mgetty[672]:  key: 'fax-min-speed', type=0,
flags=1, data=: Success
Jul 31 15:50:00 fw802 mgetty[672]:  key: 'fax-max-speed', type=0,
flags=1, data=: Success
Jul 31 15:50:00 fw802 mgetty[672]:  key: 'fax-server-file', type=1,
flags=0, data=: Success
Jul 31 15:50:00 fw802 mgetty[672]:  key: 'diskspace', type=0, flags=1,
data=: Success
Jul 31 15:50:00 fw802 mgetty[672]:  key: 'notify', type=1, flags=1,
data=: Success
Jul 31 15:50:00 fw802 mgetty[672]:  key: 'fax-owner', type=1, flags=1,
data=: Success
Jul 31 15:50:00 fw802 mgetty[672]:  key: 'fax-group', type=1, flags=0,
data=: Success
Jul 31 15:50:00 fw802 mgetty[672]:  key: 'fax-mode', type=0, flags=1,
data=: Success
Jul 31 15:50:00 fw802 mgetty[672]:  key: 'fax-spool-in', type=1,
flags=1, data=: Success
Jul 31 15:50:00 fw802 mgetty[672]:  key: 'debug', type=0, flags=2,
data=: Success
Jul 31 15:50:00 fw802 mgetty[672]:  key: 'statistics-chat', type=2,
flags=0, data=: Success
Jul 31 15:50:00 fw802 mgetty[672]:  key: 'statistics-file', type=1,
flags=0, data=: Success
Jul 31 15:50:00 fw802 mgetty[672]:  key: 'gettydefs', type=1, flags=1,
data=: Success
Jul 31 15:50:00 fw802 mgetty[672]:  key: 'term', type=1, flags=0, data=:
Success
Jul 31 15:50:00 fw802 mgetty[672]: check for lockfiles: Success
Jul 31 15:50:00 fw802 mgetty[672]:  checklock: no active process has
lock, will remove: No such process
Jul 31 15:50:00 fw802 mgetty[672]: locking the line: No such process
Jul 31 15:50:00 fw802 mgetty[672]:  makelock(ttyS0) called: No such process
Jul 31 15:50:00 fw802 mgetty[672]:  do_makelock:
lock='/var/lock/serial/LCK..ttyS0': No such process
Jul 31 15:50:00 fw802 mgetty[672]:  lock made: No such process
Jul 31 15:50:01 fw802 mgetty[672]:  tio_get_rs232_lines: status:: No
such process
Jul 31 15:50:01 fw802 mgetty[672]: lowering DTR to reset Modem: No such
process
Jul 31 15:50:01 fw802 mgetty[672]:  tss: set speed to 57600 (10001): No
such process
Jul 31 15:50:01 fw802 mgetty[672]:  tio_set_flow_control( HARD ): No
such process
Jul 31 15:50:01 fw802 mgetty[672]:  waiting for line to clear (VTIME),
read: : No such process
Jul 31 15:50:01 fw802 mgetty[672]: send: : No such process
Jul 31 15:50:02 fw802 mgetty[672]: waiting for ``OK'': No such process
Jul 31 15:50:02 fw802 mgetty[672]:  got: : No such process
Jul 31 15:50:02 fw802 mgetty[672]:   CND: ATQ0V1H0: No such process
Jul 31 15:50:02 fw802 mgetty[672]: send: : No such process
Jul 31 15:50:02 fw802 mgetty[672]: waiting for ``OK'': No such process
Jul 31 15:50:02 fw802 mgetty[672]:  got: : No such process
Jul 31 15:50:02 fw802 mgetty[672]:   CND: OK: No such process
Jul 31 15:50:02 fw802 mgetty[672]:   CND: ATS0=0Q0&D3&C1: No such process
Jul 31 15:50:02 fw802 mgetty[672]:  waiting for line to clear (VTIME),
read: : No such process
Jul 31 15:50:02 fw802 mgetty[672]:  removing lock file: No such process
Jul 31 15:50:02 fw802 mgetty[672]: waiting...: No such process
Jul 31 15:50:13 fw802 mgetty[672]:   select returned 1: No such process
Jul 31 15:50:13 fw802 mgetty[672]:  checking lockfiles, locking the
line: No such process
Jul 31 15:50:13 fw802 mgetty[672]:  makelock(ttyS0) called: No such process
Jul 31 15:50:13 fw802 mgetty[672]:  do_makelock:
lock='/var/lock/serial/LCK..ttyS0': No such process
Jul 31 15:50:13 fw802 mgetty[672]:  lock made: No such process
Jul 31 15:50:13 fw802 mgetty[672]: wfr: waiting for ``RING'': No such
file or directory
Jul 31 15:50:13 fw802 mgetty[672]:  got: : No such file or directory
Jul 31 15:50:13 fw802 mgetty[672]:   CND: RING: No such file or directory
Jul 31 15:50:13 fw802 mgetty[672]:  wfr: rc=0, drn=0: No such file or
directory
Jul 31 15:50:13 fw802 mgetty[672]:   CND: check no: 'none': No such file
or directory
Jul 31 15:50:13 fw802 mgetty[672]: send: : Operation not permitted
Jul 31 15:50:13 fw802 mgetty[672]: waiting for ``CONNECT'': Operation
not permitted
Jul 31 15:50:13 fw802 mgetty[672]:  got: : Operation not permitted
Jul 31 15:50:13 fw802 mgetty[672]:   CND: OKATA: Operation not permitted
Jul 31 15:50:31 fw802 mgetty[672]: send: : Operation not permitted
Jul 31 15:50:31 fw802 mgetty[672]: waiting for ``_'': Operation not
permitted
Jul 31 15:50:31 fw802 mgetty[672]:  got: : Operation not permitted
Jul 31 15:50:31 fw802 mgetty[672]:   CND: CONNECT 57600: Operation not
permitted
Jul 31 15:50:31 fw802 mgetty[672]:   CND: found: 57600: Operation not
permitted
Jul 31 15:50:31 fw802 mgetty[672]:  waiting for line to clear (VTIME),
read: : Operation not permitted
Jul 31 15:50:32 fw802 mgetty[672]:   looking for utmp entry... (my PID:
672): Operation not permitted
Jul 31 15:50:32 fw802 mgetty[672]:  utmp + wtmp entry made: No such file
or directory
Jul 31 15:50:32 fw802 mgetty[672]:  tio_set_flow_control( HARD ): No
such file or directory
Jul 31 15:50:32 fw802 mgetty[672]:  print welcome banner (/etc/issue):
No such file or directory
Jul 31 15:50:32 fw802 mgetty[672]:  getlogname (FIDO AUTO_PPP), read::
No such file or directory
Jul 31 15:50:32 fw802 mgetty[672]:  input finished with '\r', setting
ICRNL ONLCR: No such file or directory
Jul 31 15:50:32 fw802 mgetty[672]:  tio_get_rs232_lines: status:: No
such file or directory
Jul 31 15:50:32 fw802 mgetty[672]:   login: use login config file
/etc/mgetty+sendfax/login.config: No such file or directory
Jul 31 15:50:32 fw802 mgetty[672]:  match: user='/AutoPPP/',
key='/AutoPPP/': No such file or directory
Jul 31 15:50:32 fw802 mgetty[672]:  login: utmp entry: ppp: Invalid argument
Jul 31 15:50:32 fw802 mgetty[672]:   looking for utmp entry... (my PID:
672): Invalid argument
Jul 31 15:50:32 fw802 mgetty[672]:  utmp + wtmp entry made: No such file
or directory
Jul 31 15:50:32 fw802 mgetty[672]:  calling login: cmd='/usr/sbin/pppd',
argv[]=': No such file or directory
Jul 31 15:50:32 fw802 mgetty[672]: data dev=ttyS0, pid=672,
caller='none', conn='57600', name='', cmd='/usr/sbin/pppd', user='/AutoPPP/'
Jul 31 15:50:32 fw802 mgetty[672]:  setenv: 'CALLER_ID=none': No such
file or directory
Jul 31 15:50:32 fw802 mgetty[672]:  setenv: 'CALLED_ID=': No such file
or directory
Jul 31 15:50:32 fw802 mgetty[672]:  setenv: 'CONNECT=57600': No such
file or directory
Jul 31 15:50:32 fw802 mgetty[672]:  setenv: 'DEVICE=ttyS0': No such file
or directory
Jul 31 15:50:33 fw802 modprobe: modprobe: Can't locate module char-major-108
Jul 31 15:50:33 fw802 pppd[672]: pppd 2.4.1 started by ppp, uid 0
Jul 31 15:50:33 fw802 pppd[672]: Using interface ppp0
Jul 31 15:50:33 fw802 pppd[672]: Connect: ppp0 <--> /dev/ttyS0
Jul 31 15:50:33 fw802 pppd[672]: Warning - secret file
/etc/ppp/pap-secrets has world and/or group access
Jul 31 15:50:36 fw802 pppd[672]: Warning - secret file
/etc/ppp/pap-secrets has world and/or group access
Jul 31 15:50:36 fw802 PAM_pwdb[672]: check pass; user unknown
Jul 31 15:50:37 fw802 pppd[672]: PAP login failure for test
Jul 31 15:50:37 fw802 pppd[672]: Connection terminated.
Jul 31 15:50:37 fw802 pppd[672]: Exit.
-------------------------------
----------------------

-- 
tak dobry videohry jako je telnet na sunovskej server,
to jinde neuvidis
                                          (repa)

ZZZZ
  Z zzzz
 Z    z
ZZZZ z
    zzzz_indigo


Další informace o konferenci Linux