• April 24, 2024, 08:38:09 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: DNS 320 Chg root password to SSH help  (Read 11353 times)

anav_ds

  • Level 1 Member
  • *
  • Posts: 19
DNS 320 Chg root password to SSH help
« on: July 31, 2011, 05:28:24 PM »

OKay fun plug is up and running and I can telnet i using putty.
The instructions on how to use pwconv and passwd are too light for me to make progress.

I can type them in but not sure what if anything they are actually doing.
Logged

anav_ds

  • Level 1 Member
  • *
  • Posts: 19
Re: DNS 320 Chg root password to SSH help
« Reply #1 on: July 31, 2011, 05:51:01 PM »

Some progress,  what threw me is I had to put in as login for the DNS 320  the word admin.  NO instruction anywhere on that.   I thought it was the password I had entered but noted that it asked for password after login name.   Assuming my assumptions are correct i then entered into what I think is the dns 320.   
Also what is strange is that it does not like showing passwords entered (almost like doing it in the blind).
The result after password I got was below.
Can I assume that since I got to the busy box login ALL is good ????????

No directory, logging in with HOME=/
No mail.

BusyBox v1.11.2 (2010-11-17 11:44:30 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
Logged

anav_ds

  • Level 1 Member
  • *
  • Posts: 19
Re: DNS 320 Chg root password to SSH help
« Reply #2 on: July 31, 2011, 06:13:25 PM »

I tried to use the wget command to get the store passwd comannd for the dns 320 but it doesnt like the address provided (bad address)??
Logged

anav_ds

  • Level 1 Member
  • *
  • Posts: 19
Re: DNS 320 Chg root password to SSH help
« Reply #3 on: July 31, 2011, 06:25:16 PM »

Just want to confirm that I am replacing a larger file as shown here...
#!/bin/sh

echo "Copying files to mtd1..."
mount -t minix /dev/mtdblock0 /sys/mtd1
cp -f /etc/passwd /sys/mtd1/.
cp -f /etc/group /sys/mtd1/.
cp -f /etc/shadow /sys/mtd1/.
cp -f /etc/samba/smbpasswd /sys/mtd1/.
#cp -f /etc/ftp_tbl /sys/mtd1/.
#cp -f /etc/ftpgroup /sys/mtd1/.
sync
umount /sys/mtd1
   
echo "Copying files to mtd2..."
mount -t minix /dev/mtdblock1 /sys/mtd2
cp -f /etc/passwd /sys/mtd2/.
cp -f /etc/group /sys/mtd2/.
cp -f /etc/shadow /sys/mtd2/.
cp -f /etc/samba/smbpasswd /sys/mtd2/.
#cp -f /etc/ftp_tbl /sys/mtd2/.
#cp -f /etc/ftpgroup /sys/mtd2/.
sync
umount /sys/mtd2

echo "Done."

With the smaller file shown next.......
#!/ffp/bin/sh

echo "Saving Userdata to /usr/local/config/"
cp -f /etc/passwd /usr/local/config/
cp -f /etc/group /usr/local/config/
cp -f /etc/shadow /usr/local/config/
cp -f /etc/samba/smbpasswd /usr/local/config/
Logged

anav_ds

  • Level 1 Member
  • *
  • Posts: 19
Re: DNS 320 Chg root password to SSH help
« Reply #4 on: July 31, 2011, 06:34:21 PM »

and of course need telnet commands as windows not permitted - needs root user permssion.
Logged

anav_ds

  • Level 1 Member
  • *
  • Posts: 19
Re: DNS 320 Chg root password to SSH help
« Reply #5 on: July 31, 2011, 07:16:55 PM »

I seem to use basic commands after telnte to view directories files etc. but after i login and reach busy box etc..... it seems dead.  no commands work, how do i kickstart this thing
Logged

heliotrope

  • Level 1 Member
  • *
  • Posts: 9
Re: DNS 320 Chg root password to SSH help
« Reply #6 on: August 05, 2011, 09:52:40 AM »

Have you tried restarting by deleting fun_plug and following the tutorial here? http://nas-tweaks.net/40/installation-of-the-fonz-funplug-0-5-for-ch3snas-ch3mnas-dns-323-and-many-more/

There is a little addition with some alternate scripts for the DNS-320 in that tutorial, and that may solve your problem.  I followed it and am not having the problem you are.
Logged

anav_ds

  • Level 1 Member
  • *
  • Posts: 19
Re: DNS 320 Chg root password to SSH help ¨(SOLVED)
« Reply #7 on: August 08, 2011, 01:27:18 PM »

 I had checked of TTLD  to TLLD whatever that cwappy MS thingabobber is on the stock NAS interface.
Once removed, everthing worked.
Logged