Problems with FFP on NSA310

Marvell Kirkwood based
Bohr
Posts: 33
Joined: Sat Jun 25, 2016 1:17 pm

Re: Problems with FFP on NSA310

Post by Bohr » Thu Mar 22, 2018 6:49 pm

Thanks for replay.
I've tried and the output is:
~ # /usr/bin/smbpasswd admin
/usr/bin/smbpasswd: error while loading shared libraries: /usr/local/zy-pkgs/lib /libiconv.so.2: file too short
~ # /usr/bin/smbpasswd admin "my password was here"
/usr/bin/smbpasswd: error while loading shared libraries: /usr/local/zy-pkgs/lib/libiconv.so.2: file too short
~ #
So it seems, that something is not good.
I used Midnight Commander and checked the file /usr/local/zy-pkgs/lib/libiconv.so.2 - it has 0 bytes.
I tried to view it, and MC coldnt open. So I copied it to Public folder and opened via Total Commander and it's emty.

Mijzelf
Posts: 6205
Joined: Mon Jun 16, 2008 10:45 am

Re: Problems with FFP on NSA310

Post by Mijzelf » Thu Mar 22, 2018 9:38 pm

That is strange. I don't have a /usr/local/zy-pkgs/lib/libiconv.so.2 on my 325. I do have a /usr/lib/libiconv.so.2, and I guess smbpasswd is supposed to use that. If /usr/local/zy-pkgs/lib/libiconv.so.2 is only 0 bytes in size, you can safely delete it, forcing smbpasswd to seach further.

It is also possible to instruct smbpasswd from the command line to not use the libs in /usr/local/zy-pkgs/lib/, but it is possible that the webinterface also invokes smbpasswd, and then that trick won't work.

Bohr
Posts: 33
Joined: Sat Jun 25, 2016 1:17 pm

Re: Problems with FFP on NSA310

Post by Bohr » Fri Mar 23, 2018 9:29 am

I'll try to delete it today and I'll let you know.
I've made samba update as barmalej2 advised
2.1 Option is known-use adapted for Zyxel's Entware-ng (Mijzelf) package :
https://forum.nas-central.org/viewtopic ... 49&t=21821
Does this make any difference?

Strange thing is, that I couldn't view the file with MC and other files I colud.
Logged in as root I have all root access rights to this file.

Mijzelf
Posts: 6205
Joined: Mon Jun 16, 2008 10:45 am

Re: Problems with FFP on NSA310

Post by Mijzelf » Fri Mar 23, 2018 11:14 am

Bohr wrote:Does this make any difference?
I don't think so.
Strange thing is, that I couldn't view the file with MC and other files I colud.
What do you expect to see when you view a 0 bytes file?

Bohr
Posts: 33
Joined: Sat Jun 25, 2016 1:17 pm

Re: Problems with FFP on NSA310

Post by Bohr » Fri Mar 23, 2018 2:13 pm

What do you expect to see when you view a 0 bytes file?

I expect to see blank page, as I it was in Total Commander, not an error, as in Midnaight Commander.
But after copying the file to computer the size was 2 bytes insted of 0.

Bohr
Posts: 33
Joined: Sat Jun 25, 2016 1:17 pm

Re: Problems with FFP on NSA310

Post by Bohr » Fri Mar 23, 2018 8:05 pm

After deleting file

Code: Select all

/usr/local/zy-pkgs/lib /libiconv.so.2
command

Code: Select all

/usr/bin/smbpasswd admin
workd fine.
It also changed the WebUI of ZyXel.
Even the active sessions started to work properly (screenshot attached).
But after rebooting device, the password was again default 1234.
So I've changed password thrugh the WebUI and this time there was no error.
In ssh root password also has been changed this way.
So now it works just fine.
For now my NSA310 will work this way, but I'll perform total reset in some time anyway, because it is not exactly ok with firmware (terminal of FFP and the factory Transmission didn't work).
And I'll put bigger disk. :D

Thanks Mijzelf!
You are THE BEST!
Also thank you barmalej2!

PS
If you guys want me to experiment a bit with this broken firmware, just write me, what would you like me to do.
You do not have the required permissions to view the files attached to this post.

Mijzelf
Posts: 6205
Joined: Mon Jun 16, 2008 10:45 am

Re: Problems with FFP on NSA310

Post by Mijzelf » Sat Mar 24, 2018 8:24 am

You're welcome.

Bohr
Posts: 33
Joined: Sat Jun 25, 2016 1:17 pm

Re: Problems with FFP on NSA310

Post by Bohr » Mon Mar 26, 2018 11:34 am

One more question, ok two:
1. If I take out the hdd and put in another, empty one, format and run for some time, then take out and put back the first one.
Will the old disk work normally, or will I have to reset/format it? Will I loose the data, settins or anything else (except time :D )?
2. Does the system of NSA310 install on hdd and run from it?

I'm asking, because I am planning to test new disk and see if and how it will work but I have no other drive to store the data from my NAS.
So I want to test new disk and put back the old disk.

Mijzelf
Posts: 6205
Joined: Mon Jun 16, 2008 10:45 am

Re: Problems with FFP on NSA310

Post by Mijzelf » Mon Mar 26, 2018 6:44 pm

1) You won't loose data. Maybe you'll have to reenable some shares. Don't know what the firmware does with the old samba settings when you create a new volume. But of course you can backup your settings before you pull the disk.
2) Partly. The firmware is completely in flash, but because the flash is slow, a part is copied to harddisk, and runs from there. If you delete that, it will simply copy it again.

Bohr
Posts: 33
Joined: Sat Jun 25, 2016 1:17 pm

Re: Problems with FFP on NSA310

Post by Bohr » Mon Mar 26, 2018 9:23 pm

Thanks again Mijzelf.

Post Reply