for the D-Link DNS-320 Sharecenter Pulse

The D-Link DNS-320 needs a different than the one supplied with Fonz fun_plug. Basically it is very simple if you look at the contents:

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/

Run the following command to download it to the NAS:

wget -O /ffp/sbin/

Then proceed with the installation of Fonz fun_plug.

12 thoughts on “ for the D-Link DNS-320 Sharecenter Pulse”

    1. Just want to confirm that I am simply replacing a file in the sbin folder (namely the store password file from this

      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/.
      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/.
      umount /sys/mtd2

      echo “Done.”

      To the much smaller and simpler……

      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/

  1. Drats, cannot do it from windows as it needs root user permission.
    How do I do it from the telnet commands…….

    1. try this

      vi /ffp/sbin/
      i (this means insert, then insert those lines)

      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/

      (after this, press esc, then press “Z” twice to save the file. Capital Z twice)

  2. Hi,

    I am currently trying to change this file however I keep getting this error

    wget: invalid option — o
    BusyBox v1.12.1 (2008-09-29 20:38:04 CEST) multi-call binary

    Usage: wget [-c|–continue] [-s|–spider] [-q|–quiet] [-O|–output-document file]
    [–header ‘header: value’] [-Y|–proxy on/off] [-P DIR]
    [-U|–user-agent agent] url

    Retrieve files via HTTP or FTP

    -s Spider mode – only check file existence
    -c Continue retrieval of aborted transfer
    -q Quiet
    -P Set directory prefix to DIR
    -O Save to filename (‘-‘ for stdout)
    -U Adjust ‘User-Agent’ field
    -Y Use proxy (‘on’ or ‘off’)

    Any help would be much appreciated.

  3. Well, this procedure must be done before install fun_plug 0.5? I already installed funplug, what i have to do now? How i can replace original with that right for dns-325.
    Help me pls.

  4. Also mine was not working with wget. So i downloaded the file to my linuxbox, and then copied it to a mounted Hard disk (cd /mnt/HD/HD_a2).

    After that it was easy, just
    “cp /ffp/sbin/”

  5. Hi everybody, I’ve a DNS-325. I’ve followed the instruction to setup the fun_plug.
    Everything works smoothly but the /etc/passwd and /etc/shadow file are restored with the original one at each reboot even if I run
    Anybody could help please?
    Thanks in advance.

  6. Sorry I’ve forgot to mention that at each reboot my shadow file contains two entry for root with the first one
    having always the same password hash.

Leave a Reply

Your email address will not be published. Required fields are marked *