DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2009-03-23 03:24:09

Caretaker
Member
Registered: 2009-03-23
Posts: 8

SSH refusing root pw

Using DNS-323, Fw. 1.06, Fun_plug 0.5

Suddenly SSH is refusing the root pw. Found following in the logfile:

Mar 23 00:56:17 DNS-323 auth.err sshd[1983]: error: Could not get shadow information for root
Mar 23 00:56:17 DNS-323 auth.info sshd[1983]: Failed password for root from 192.168.0.6 port 1803 ssh2
Mar 23 00:56:17 DNS-323 auth.info sshd[1983]: Excess permission or bad ownership on file /var/log/btmp

First line with missing shadow info was allways present, but could log in, last 2 lines are since refusal of the pw. Could not finde any folder/File  /var/log/btmp.

How can I enter with SSH again ?

Thanks in advance.

Offline

 

#2 2009-03-24 05:07:47

madpenguin
Member
Registered: 2008-12-25
Posts: 77

Re: SSH refusing root pw

Using telnet would probably be the best route. Hopefully it'll still let you.

I'd probably do something like this:

<telnet into your box>
touch /var/log/btmp
chown root:root /var/log/btmp
chmod 644 /var/log/btmp
sed -i 's%#ENCRYPT_METHOD DES%ENCRYPT_METHOD MD5%' /ffp/etc/login.defs
pwconv
grpconv
passwd
<enter your new root password>
store-passwd.sh
chmod 644 /ffp/start/telnetd.sh
chmod 755 /ffp/start/sshd.sh
exit
<ssh into your box>
reboot


Then.... Hopefully you don't have the same problem after it reboots... ;-)

Last edited by madpenguin (2009-03-24 05:09:17)

Offline

 

#3 2009-03-25 21:00:59

Caretaker
Member
Registered: 2009-03-23
Posts: 8

Re: SSH refusing root pw

Thanks madpenguin, I made it radical, removed and installed newly.

Offline

 

#4 2009-03-26 16:49:10

madpenguin
Member
Registered: 2008-12-25
Posts: 77

Re: SSH refusing root pw

What's the fun in that? ;-)

Offline

 

#5 2009-03-27 21:06:31

Caretaker
Member
Registered: 2009-03-23
Posts: 8

Re: SSH refusing root pw

The fun in that is, that I put the fun_plug now on usb stick wink

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB