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 2010-01-17 19:38:15

hochers
Member
Registered: 2010-01-17
Posts: 7

root login doesn't work after restarting NAS

hey everybody,

I have an acer easystore with fun_plug installed. I have the problem that after every restart the root password is gone and I have to login via telnet again to set the password again. I know this is not an acer forum but I hope somebody can help me because there is no easystore community smile.

I'm doing this:

#/ pxconv
#/ passwd

#/ store.passwd.sh

after that the ssh login works as long as I don't restart the NAS.


ls -al /usr/bin/passwd tells me:

lrwxrwxrwx    1 root     root           19 Jul  7  2008 /usr/bin/passwd -> ../../bin/tinylogin

what is tinylogin? Is that right there.

Thanks for the help!!

Offline

 

#2 2010-01-17 20:23:11

Mijzelf
Member / Developer
Registered: 2008-07-05
Posts: 709

Re: root login doesn't work after restarting NAS

tinylogin is a toolbox containing various tools for login management, a bit like busybox.

I suppose the store.passwd.sh script is not sufficient to store the passwd and/or shadow file on your easystore. So you have to
- find out where and how the easystore stores it settings, and write your own store.passwd.sh,
or
- bypass the firmware's storage, and change funplug to restore it from a known place. After having changed the root password, do
cp /etc/passwd /some/known/and/persistant/place/passwd
cp /etc/shadow /some/known/and/persistant/place/shadow

in fun_plug add the lines
cp -f /some/known/and/persistant/place/passwd /etc/passwd
cp -f /some/known/and/persistant/place/shadow /etc/shadow

Offline

 

#3 2010-01-18 08:55:49

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: root login doesn't work after restarting NAS

Try this store-passwd.sh script instead:
http://nas-tweaks.net/CH3SNAS:Store-passwd.sh

Offline

 

#4 2010-06-11 19:50:08

danello
New member
Registered: 2010-06-11
Posts: 1

Re: root login doesn't work after restarting NAS

I think it's the same to me, telnet daemon doesn't start after a reboot (the second reboot, the first one untars the tar and starts telnetd fine).

That's why he couldn't login anymore.

Here is my log:

...
tar: WARNING: Converting hard link to symlink
tar: WARNING: Converting hard link to symlink
tar: WARNING: Converting hard link to symlink
tar: WARNING: Converting hard link to symlink
tar: WARNING: Converting hard link to symlink
tar: WARNING: Converting hard link to symlink
tar: WARNING: Converting hard link to symlink
tar: WARNING: Converting hard link to symlink
tar: WARNING: Converting hard link to symlink
* OK
* Running /ffp/etc/fun_plug.init ...
* Running /ffp/etc/rc ...
* /ffp/start/syslogd.sh inactive
* /ffp/start/SERVERS.sh inactive
* /ffp/start/portmap.sh inactive
* /ffp/start/unfsd.sh inactive
* /ffp/start/nfsd.sh inactive
* /ffp/start/ntpd.sh inactive
* /ffp/start/LOGIN.sh inactive
* /ffp/start/telnetd.sh ...
Starting /ffp/sbin/telnetd -l /ffp/bin/sh
* /ffp/start/sshd.sh inactive
* /ffp/start/rsyncd.sh inactive
* /ffp/start/mediatomb.sh inactive
* /ffp/start/kickwebs.sh inactive
* /ffp/start/lighttpd.sh inactive
* /ffp/start/inetd.sh inactive
*  OK
**** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****
Fri Jun 11 18:31:04 CEST 2010
ln -snf /mnt/HD_a2/ffp /ffp
* Running /ffp/etc/fun_plug.init ...
Segmentation fault
* Running /ffp/etc/rc ...
Segmentation fault
*  OK


Fonz, am I the only one experiencing this segmentation fault?

Thanks in advance.

Offline

 

#5 2010-06-11 22:24:50

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: root login doesn't work after restarting NAS

No, it's a known problem on DNS-343s. Afaict, a firmware upgrade solves it.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB