telnet root-login nach update zerschossen

rgrr

Neuer User
Mitglied seit
22 Nov 2008
Beiträge
96
Punkte für Reaktionen
0
Punkte
0
Hallo zusammen,

ich habe gerade ein Update auf die r3295 (mit selbst gebauter toolchain) durchgeführt (Image heisst 7270_labor_aura_04.95freetz-devel.de_20090428-104943.image).

Es scheint alles zu funktionieren, nur leider klappt es mit dem telnet login nicht mehr.

Auch ein "(echo jajasoso;sleep 1; echo jajasoso) | passwd" in der Rudi-Shell hilft nicht.

Es wird aber tatsächlich was geändert, siehe
Code:
cat /etc/shad*
(echo jajasoso;sleep 1; echo jajasoso) | passwd
cat /etc/shad*

ergibt die Ausgabe:

Code:
root:$1$XQA6IkUw$aQceOpgdGWAt1ue1h/kh//:12332:0:99999:7:::
ftpuser:!:10957:0:99999:7:::
ftp:!:10957:0:99999:7:::
   :
wwwrun:!:14362:0:99999:7:::
Changing password for root
New password:
Bad password: too weak
Retype password:
Password for root changed by root
root:$1$rnwNNvXD$wwT3nWW7WTxURyR1LyE451:12332:0:99999:7:::
ftpuser:!:10957:0:99999:7:::
ftp:!:10957:0:99999:7:::
   :
wwwrun:!:14362:0:99999:7:::

Im syslog steht dann
Code:
Apr 28 11:01:06 fritz auth.err passwd: no record of root in /var/tmp/shadow, using /var/tmp/passwd
Apr 28 11:01:07 fritz auth.info passwd: Password for root changed by root

/var/tmp/shadow gibt es aber, /etc/shadow zeigt darauf und ausserdem gibt es einen root-Eintrag.

Weiss jemand Abhilfe?

Hardy
 
Der Wert für dein Paßwort stimmt. Vielleicht wird aber die Funktion durcheinander gebracht durch die Zeile, in der ein einsamer Doppelpunkt steht.

Du kannst eine Kopier der shadow Datei machen und diese dann überschreiben mit
Code:
echo 'root:$1$XQA6IkUw$aQceOpgdGWAt1ue1h/kh//:12332:0:99999:7:::' > /etc/shadow

Wenn Du dann wieder Zugriff hast, kannst Du die anderen Zeilen hinzufügen.
 
Hmm, sorry. Der einsame ':' stammt von mir. Ich habe zwecks Anonymisierung ein paar Accountzeilen gelöscht und dafür die ':' eingefügt.

Hardy
 
Versuch es trotzdem mal. Die Meldung "passwd: no record of root in /var/tmp/shadow, using /var/tmp/passwd" klingt auf jeden Fall schon mal seltsam. Hast Du vielleicht die Datei mit einem Windows-Editor bearbeitet?
 
Versuch es trotzdem mal...

Ich habe jetzt Deinen Vorschlag ausprobiert - kein Erfolg.
Dann habe ich /var/tmp/shadow umsortiert, so dass root nicht mehr in der ersten Zeile steht - kein Erfolg.

Carriage returns stehen auch keine drin (Windows-Bearbeitung).

Könnte es sein, dass irgendwas mit der busybox los ist?

Hardy
 
selbes Verhalten auch bei mir

bei mir tritt genau dasselbe Phänomen nach dem Update auf die aktuelle Version auf

irgendwie dachte ich mir schon das sowas kommt. (turbulente Entwicklung der letzten Tage)
 
bei mir tritt genau dasselbe Phänomen nach dem Update auf die aktuelle Version auf...

Na, das ist ja (für mich jedenfalls) beruhigend, dass ich nicht der Einzige mit dem Problem bin.

Das bedeutet, dass ab sofort die Person mit der höchsten svn-Revision gesucht wird, bei der root-telnet noch funktioniert, bzw die Revision, bei der es gerade nicht mehr funktioniert...

Ich biete, wie gesagt, die r3295 bei der es nicht mehr funktioniert!

Hardy
 
@ rgrr

Hier kam die neue Toolchain: http://trac.freetz.org/changeset/3283

Probiere es daher am besten mal mit R3282 aus.
Code:
svn co http://svn.freetz.org/trunk/ freetz-trunk -r 3282
 
Ich hab auch gedacht, dass ab 3282 da Änderunegn sind. Leider lief damit vorgestern das make nicht durch!
 
@ cuma

Bei mir liefen damit Images für 5140 und 7141 als Alien der 7170 durch. Aber das muss ja nichts heißen, unsere gewählten Pakete können ja vollkommen unterschiedlich sein. Bei welchen Paketen kam es bei dir zu Fehlern?

Mario
 
Es sollte ein Image für die 7170 werden. Ich war frustiertt und hab leider direkt das ganze Verzeichnis wieder gelöscht, um abzuwarten bis es wieder läuft. Ich glaubt aber noch zu wissen dass es irgendwas mit toolchain/uclib zu tun hatte
 
@ cuma

Der Fehler mit toolchain/uclib sollte bei der 3282 noch nicht auftreten.
Ich hab gerade extra nochmal ein Image für die 7170 mit ein paar Paketen durchlaufen lassen. Problemlos:
Code:
STEP 2: MODIFY
applying patches
  applying patches (7170-de)
    applying patch file ./patches/7170/100-webif.sh
  Applying symlinks, deleting additional webinterfaces
    applying patch file ./patches/7170/110-inittab.sh
    applying patch file ./patches/100-profile.patch
    patching file etc/profile
    ----------------------------------------------------------------------
    applying patch file ./patches/110-multid-wait.patch
    patching file etc/init.d/rc.net
    ----------------------------------------------------------------------
    applying patch file ./patches/110-system_status.patch
    patching file usr/bin/system_status
    ----------------------------------------------------------------------
    applying patch file ./patches/120-inittab_console.patch
    patching file etc/inittab
    ----------------------------------------------------------------------
    applying patch file ./patches/130-fstab.patch
    patching file etc/fstab
    ----------------------------------------------------------------------
    applying patch file ./patches/7170/100-rc.net-dnsmasq.patch
    patching file etc/init.d/rc.net
    ----------------------------------------------------------------------
    applying patch file ./patches/7170/de/110-rc.S-mknod.patch
    patching file etc/init.d/rc.S
    ----------------------------------------------------------------------
    applying patch file ./patches/7170/de/120-rc.S-dev.patch
    patching file etc/init.d/rc.S
    ----------------------------------------------------------------------
    applying patch file ./patches/7170/de/130-foncalls.patch
    patching file usr/www/all/html/de/home/foncalls.js
    ----------------------------------------------------------------------
    applying patch file ./patches/7170/de/130-rc.S-logging.patch
    patching file etc/init.d/rc.S
    ----------------------------------------------------------------------
    applying patch file ./patches/7170/de/140-rc.S-no_avm_exit.patch
    patching file etc/init.d/rc.S
    ----------------------------------------------------------------------
    applying patch file ./patches/7170/de/190-webmenu.patch
    patching file usr/www/all/html/de/menus/menu2_homehome.html
    patching file usr/www/all/html/de/menus/menu2_konfig.html
    ----------------------------------------------------------------------
    applying patch file ./patches/7170/de/200-sperre1.patch
    patching file usr/www/avm/html/de/fon/sperre1.js
    ----------------------------------------------------------------------
    applying patch file ./patches/7170/de/210-notmountable.patch
    patching file usr/www/all/html/de/home/home.js
    ----------------------------------------------------------------------
    applying patch file ./patches/7170/de/290-replace_websrv-remove_igdd.patch
    patching file etc/init.d/rc.net
    ----------------------------------------------------------------------
    applying patch file ./patches/7170/de/301-remove_smbd.patch
    patching file etc/init.d/rc.net
    ----------------------------------------------------------------------
    applying patch file ./patches/7170/de/400_remove_ftpd.patch
    patching file etc/hotplug/storage
    patching file etc/hotplug/run_mount
    ----------------------------------------------------------------------
  creating symlinks /tmp, /mod and /home
  setting freetz-version 'freetz-devel-3282'
  setting subversion 'freetz-devel-3282'
    applying patch file ./patches/100-3170_7170.sh
    applying patch file ./patches/100-7140_7170.sh
    applying patch file ./patches/100-7141_7170.sh
    applying patch file ./patches/100-getcons.sh
  removing /bin/getcons
    rm build/modified/filesystem/bin/getcons
    applying patch file ./patches/100-profile_term_password.sh
    applying patch file ./patches/100-rename_ctlmgr.sh
    applying patch file ./patches/100-w701v_7170.sh
    applying patch file ./patches/100-w900v_7170.sh
    applying patch file ./patches/101-libfreetz.sh
  patching /etc/init.d/rc.s
    applying patch file ./patches/105-onlinechanged.sh
  Patching /bin/onlinechanged
    applying patch file ./patches/115-7270_16MB.sh
    applying patch file ./patches/170-rename_ar7login.sh
  renaming ar7login to make way for wrapper script
    applying patch file ./patches/180-printk.sh
  applying printk patch
    applying patch file ./patches/191-webmenu_wol.sh
    applying patch file ./patches/195-webmenu_signed.sh
  applying webmenu signed patch
    applying patch file ./patches/196-usbstorage.sh
  applying USB storage patch
    applying patch file ./patches/cond/usbstorage_7170.patch
    patching file etc/hotplug/run_mount
    Hunk #3 succeeded at 99 (offset 4 lines).
    Hunk #4 succeeded at 121 with fuzz 1 (offset 3 lines).
    ----------------------------------------------------------------------
    applying patch file ./patches/200-vcc.sh
  applying vcc patch
    applying patch file ./patches/210-ata.sh
    applying patch file ./patches/210-enum.sh
    applying patch file ./patches/210-international.sh
    applying patch file ./patches/220-assistant.sh
    applying patch file ./patches/220-cdrom-iso.sh
    applying patch file ./patches/220-help.sh
  removing help
  build/modified/filesystem/usr/www/all/html/de
    rm build/modified/filesystem/usr/www/all/html/de/help
    applying patch file ./patches/230-openssl.sh
  removing avm's libcrypto
    rm build/modified/filesystem/lib/libcrypto.so
    rm build/modified/filesystem/lib/libcrypto.so.1
    rm build/modified/filesystem/lib/libcrypto.so.0.9.8
    applying patch file ./patches/240-add-dsl-expert-pages.sh
  adding dsl expert pages
    patching build/modified/filesystem/usr/www/avm/html/de/internet/adsl.html
    patching build/modified/filesystem/usr/www/avm/html/de/internet/bits.html
    patching build/modified/filesystem/usr/www/avm/html/de/internet/atm.html
    patching build/modified/filesystem/usr/www/avm/html/de/internet/overview.html
    applying patch file ./patches/cond/de/dsl-expert-pages.patch
    patching file usr/www/avm/html/de/internet/labor_dsl.frm
    patching file usr/www/avm/html/de/internet/labor_dsl.html
    patching file usr/www/avm/html/de/internet/labor_dsl.js
    ----------------------------------------------------------------------
    applying patch file ./patches/250-remove_avm_inetd.sh
    applying patch file ./patches/260-remove_tr069.sh
    applying patch file ./patches/270-remove_usb_module.sh
    applying patch file ./patches/290-replace_websrv-remove_igdd.sh
    applying patch file ./patches/300-remove-smbd.sh
  remove samba files
    rm build/modified/filesystem/sbin/smbd
    rm build/modified/filesystem/sbin/smbpasswd
    rm build/modified/filesystem/etc/samba_config.tar
    rm build/modified/filesystem/etc/samba_control
  patching rc.conf
    applying patch file ./patches/310-remove_userman.sh
    applying patch file ./patches/320-remove_capiotcp.sh
    applying patch file ./patches/320-remove-dsld.sh
    applying patch file ./patches/330-remove-voip-isdn.sh
    applying patch file ./patches/340-remove_dect_update.sh
    applying patch file ./patches/350-add_remove_annex_file.sh
    applying patch file ./patches/360-remove-wlan.sh
    applying patch file ./patches/370-remove_dtrace.sh
    applying patch file ./patches/401-remove_ftpd.sh
  remove ftp files
    rm build/modified/filesystem/sbin/ftpd
  patching rc.conf
    applying patch file ./patches/440-cutdown_samba_control.sh
    applying patch file ./patches/450-autorun_autoend.sh
    applying patch file ./patches/460-MAXDEVCOUNT.sh
  patching usb.pandu: MAXDEVCOUNT
    applying patch file ./patches/470-volumecounter.sh
    applying patch file ./patches/500-remove-mediasrv.sh
  remove medissrv files
    rm build/modified/filesystem/sbin/mediasrv
    rm build/modified/filesystem/sbin/start_mediasrv
    rm build/modified/filesystem/sbin/stop_mediasrv
  patching rc.conf
    applying patch file ./patches/510-remove_aura_usb.sh
    applying patch file ./patches/510-remove_avm_vpn.sh
    applying patch file ./patches/510-remove_minid.sh
  removing minid files
    rm build/modified/filesystem/bin/minid
    rm build/modified/filesystem/bin/minidcfg
    rm build/modified/filesystem/bin/email.plugin
    rm build/modified/filesystem/bin/music.plugin
    rm build/modified/filesystem/bin/rssagg.plugin
    rm build/modified/filesystem/bin/streamer.plugin
    rm build/modified/filesystem/bin/telephon.plugin
    rm build/modified/filesystem/bin/update.plugin
    rm build/modified/filesystem/etc/minid
    rm build/modified/filesystem/usr/share/ctlmgr/libmini.so
  patching rc.conf
    applying patch file ./patches/520-remove_dect.sh
    applying patch file ./patches/600-replace_mdev.sh
  removing oem: freenet
installing mod base
  copying files
  installing libs
    ld_uClibc
    libcrypt
    libcrypto
    libdl
    libfreetz
    libgcc_s
    libm
    libnsl
    libpthread
    libresolv
    librt
    libuClibc
    libutil
    libz
  patching security level
replacing busybox
  replacing busybox-8mb_26
  installing symlinks
  installing modules
    mbcache.ko
    jbd.ko
    ext2.ko
    ext3.ko
  generating modules.dep
installing packages
  syslogd-cgi-0.2.3
  callmonitor-1.12.5
  avm-firewall-2.0.4_rc2
  dnsmasq-2.47
  dropbear-0.52
  fstyp-0.1
  haserl-0.9.25
  modcgi-0.2
  openssh-5.1p1
invoking custom script
done.

STEP 3: PACK
  Checking for left over Subversion directories
squashfs blocksize
  root filesystem: 65536
packing var.tar
creating filesystem image
merging kernel image
  kernel image size: 6706432 (max: 7798784, free: 1092352)
  Aproximately free time for the answering machine: 425s (7min 5s)
packing 7170_04.70freetz-devel-3282.de_20090430-004612.image
Image files can be found in the ./images/ subfolder
done.

FINISHED
lxuser@serverL12:~/freetz-trunk3282$
Mario
 
Dann muss ich nochmal schauen
 
tach zusammen...
Hab gerade mal diesen Thread gefunden....
bei mir läuft telnet auch nicht...und scheinbar liegts ja nicht an mir..
war schon halb am verzweifeln^^'

naja ich hatte mir gestern die r3296 ausm trunk kompiliert..und nu geht telnet bei mir auch nicht..
hatte sogar gerade die 7170 restored und dann freetz wieder drauf..
 
Selbes Passwortproblem bei mir hier mit aktuellem Trunk.

Aber nicht nur bei Telnet, sondern auch bei FTP....
 
Der Standart-Client der im AVM-image enthalten ist. Sprich wenn ich in der Web-Oberfläche von AVM auf meine HDD klicke, sagt er mir das die Zugangsdaten falsch sind (wofür ich früher nie welche gebraucht hatte).

Ist nen Imageohne irgendwelche Erweiterungen.
 
Ich glaub das liegt daran, dass der ftpuser nicht in /etc/passwd wegen der libfreetz angelegt/geändert werden kann. Nimm vsftpd
 
Ich habe genau das gleiche Problem mit meiner Fritzbox 7141, habe die neue firmware .70 benutzt + den aktuellen trunk von freetz.

- ftp zugang geht nicht mehr "530 user ftpuser access denied"

- telnet zugang geht mit den standard-passwörtern nicht

-swap lässt sich nicht aktivieren, swapdatei wurde vorher ebenfalls über die oberfläche erfolgreich angelegt, aber beim aktivieren kommt immer "failed" (Obwohl dieses Problem weniger was mit den ersten zwei zu tun hat)

Würde alternativ mal gerne die 1.0.3 freeze aufspielen, aber dazu bräuchte ich die .68er firmware, die ich nicht mehr finde.

Daher wollte ich mich erkundigen, wie da der aktuelle Stand bei den Hauptproblemen beim aktuellen Trunk ist.
 
@donjupp
Schau mal hier nach, da gibt's zwei Workarounds.
 

Zurzeit aktive Besucher

Keine Mitglieder online.

Statistik des Forums

Themen
244,936
Beiträge
2,221,196
Mitglieder
371,706
Neuestes Mitglied
nbkRT
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.