[HOWTO] Update samba (to 3.6.25) using Entware-ng
Re: [HOWTO] Update samba (to 3.6.25) using Entware-ng
Have you already tried to access the NAS by IP instead of name?
Re: [HOWTO] Update samba (to 3.6.25) using Entware-ng
Hi,
Just installed this update and it seems to be mostly working. W10 reports "Dialect 2.0.2" so although I don't know how to check if it's 3.6.25 it's updated. My problem is that I can't access my shares where I have Recycle Bin enabled. I mean "vfs objects = recycle" that is configured as follows:
It works perfectly well for firmware SAMBA but here for some reason it isn't. Is there any way to enable it?
Just installed this update and it seems to be mostly working. W10 reports "Dialect 2.0.2" so although I don't know how to check if it's 3.6.25 it's updated. My problem is that I can't access my shares where I have Recycle Bin enabled. I mean "vfs objects = recycle" that is configured as follows:
Code: Select all
vfs objects = recycle
recycle:repository = /i-data/f918fac3/Kosz
recycle:exclude = .test.permission.file.*
recycle:directory_mode = 0777
recycle:subdir_mode = 0777
recycle:keeptree = yes
recycle:versions = yes
recycle:touch = yes
recycle:touch_mtime = no
recycle:maxsize = 0
Re: [HOWTO] Update samba (to 3.6.25) using Entware-ng
Hello guys,
performed all the steps, but still smbd -V is 3.5.6
root@NSA325-v2:/opt/bin# ./opkg update
Downloading http://pkg.entware.net/binaries/armv5/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/packages
Downloading http://downloads.zyxel.nas-central.org/ ... ackages.gz
Updated list of available packages in /opt/var/opkg-lists/Mijzelf
root@NSA325-v2:/opt/bin# ./opkg install zyxel-samba-replacement
Package zyxel-samba-replacement (3.6.25) installed in root is up to date.
root@NSA325-v2:/opt/bin# chmod a-x /opt/etc/init.d/S08samba
root@NSA325-v2:/opt/bin# /opt/etc/init.d/S09ZyXELSambaReplacement start
Stopping Samba daemons: nmbd smbd.
root@NSA325-v2:/opt/bin# smbd -V
Version 3.5.6
root@NSA325-v2:/opt/bin# /opt/etc/init.d/S09ZyXELSambaReplacement stop
Starting Samba daemons: nmbd smbd.
root@NSA325-v2:/opt/bin# smbd -V
Version 3.5.6
I am not sure why the 3.6.25 is not installed, what am I missing?
performed all the steps, but still smbd -V is 3.5.6
root@NSA325-v2:/opt/bin# ./opkg update
Downloading http://pkg.entware.net/binaries/armv5/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/packages
Downloading http://downloads.zyxel.nas-central.org/ ... ackages.gz
Updated list of available packages in /opt/var/opkg-lists/Mijzelf
root@NSA325-v2:/opt/bin# ./opkg install zyxel-samba-replacement
Package zyxel-samba-replacement (3.6.25) installed in root is up to date.
root@NSA325-v2:/opt/bin# chmod a-x /opt/etc/init.d/S08samba
root@NSA325-v2:/opt/bin# /opt/etc/init.d/S09ZyXELSambaReplacement start
Stopping Samba daemons: nmbd smbd.
root@NSA325-v2:/opt/bin# smbd -V
Version 3.5.6
root@NSA325-v2:/opt/bin# /opt/etc/init.d/S09ZyXELSambaReplacement stop
Starting Samba daemons: nmbd smbd.
root@NSA325-v2:/opt/bin# smbd -V
Version 3.5.6
I am not sure why the 3.6.25 is not installed, what am I missing?
Re: [HOWTO] Update samba (to 3.6.25) using Entware-ng
'smbd -V' shows the version of the called smbd, not necessarily the version of the running smbd. You can see which smbd you are calling by executing 'which smbd'.
Re: [HOWTO] Update samba (to 3.6.25) using Entware-ng
Thanks Mijzelf,
seems that`s the one running. Should stop it and start the newer one I guess, thought the script would do it.
root@NSA325-v2:/# which smbd
/usr/sbin/smbd
seems that`s the one running. Should stop it and start the newer one I guess, thought the script would do it.
root@NSA325-v2:/# which smbd
/usr/sbin/smbd
Re: [HOWTO] Update samba (to 3.6.25) using Entware-ng
The script is supposed to do so. 'which smbd' tells you which smbd is started from the command line, not which smdb is actually running.velqn wrote:seems that`s the one running. Should stop it and start the newer one I guess, thought the script would do it.
root@NSA325-v2:/# which smbd
/usr/sbin/smbd
To see which is running, execute
ps | grep smbd
Re: [HOWTO] Update samba (to 3.6.25) using Entware-ng
For some reason ps does not return anything when I grep for smbd, but I know it`s running... it runs on my libreelec box and on my NAS, but look below:Mijzelf wrote:The script is supposed to do so. 'which smbd' tells you which smbd is started from the command line, not which smdb is actually running.velqn wrote:seems that`s the one running. Should stop it and start the newer one I guess, thought the script would do it.
root@NSA325-v2:/# which smbd
/usr/sbin/smbd
To see which is running, execute
ps | grep smbd
LibreELEC:~ # ps | grep smbd
412 root 0:00 /usr/sbin/smbd
418 root 0:00 {smbd-notifyd} /usr/sbin/smbd
420 root 0:00 {cleanupd} /usr/sbin/smbd
427 root 0:00 {lpqd} /usr/sbin/smbd
607 root 0:00 grep smbd
LibreELEC:~ # ssh nas
***@nas's password:
== Welcome at FFP version 0.7/arm, running on NSA325v2 NSA325-v2, firmware V4.81 (AALS.1) ==
***@NSA325-v2:~# ps | grep smbd
***@NSA325-v2:~#
update: tnx to Philip! Stopped FFP, rebooted and installed via opkg.
Re: [HOWTO] Update samba (to 3.6.25) using Entware-ng
Hello,
When I update opkg and install new samba-server then no working on ZyXELSambaReplacement. I look for other version on Samba and find barmalej2 on FFP, but script to run samba not working, so I change for ZyXELSambaReplacement to run /ffp/opt/sbin/... and work. When I run samba -V there is 3.6.25.
When I update opkg and install new samba-server then no working on ZyXELSambaReplacement. I look for other version on Samba and find barmalej2 on FFP, but script to run samba not working, so I change for ZyXELSambaReplacement to run /ffp/opt/sbin/... and work. When I run samba -V there is 3.6.25.
Re: [HOWTO] Update samba (to 3.6.25) using Entware-ng
Just working on getting my NSA320 (NAS320) also on Samba 3.6.25.
Thanks, Mijzelf, for the Zyxel replacement script.
Just status for now:
- When installed the samba server, also S08samba is in /opt/etc/init.d (eXecute rights).
Some issues found, smbd would not start.
After removing S08, and (hope temp.) removing the recycle bins from the conf file, all seems to work perfectly.
Going to run for couple of days, then try to get the recycle back.
Thanks, Mijzelf, for the Zyxel replacement script.
Just status for now:
- When installed the samba server, also S08samba is in /opt/etc/init.d (eXecute rights).
Some issues found, smbd would not start.
After removing S08, and (hope temp.) removing the recycle bins from the conf file, all seems to work perfectly.
Going to run for couple of days, then try to get the recycle back.
NSA320 FW V4.70(AFO.3) Entware-ng (previous FFP 0.7 on usb )
NAS326 with Entware-ng
Bunch of USB 2 & 3 external disks connected to nas.
NAS326 with Entware-ng
Bunch of USB 2 & 3 external disks connected to nas.
Re: [HOWTO] Update samba (to 3.6.25) using Entware-ng
Hi All,
Just tried to startup the recycle bin again on nsa320, with 3.6.25 samba.
Error getting from smbd:
Probing module 'recycle'
Probing module 'recycle': Trying to load from /opt/lib/vfs/recycle.so
Error loading module '/opt/lib/vfs/recycle.so': /opt/lib/vfs/recycle.so: undefined symbol: DEBUGLEVEL_CLASS
error probing vfs module 'recycle': NT code 0xc0000001
smbd_vfs_init: vfs_init_custom failed for recycle
vfs_init failed for service personal (is share on NAS320)
setting sec ctx (504, 500) - sec_ctx_stack_ndx = 0
First to find library which covers the DEBUGLEVEL_CLASS.
Should normally be found within the path via the env.
...
LD_LIBRARY_PATH=/usr/local/zy-pkgs/lib
...
PATH=/opt/bin:/opt/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/zyxel/sbin:/usr/local/zy-pkgs/bin:/zyxel/htp
If you have any ideas, please add.....
Just tried to startup the recycle bin again on nsa320, with 3.6.25 samba.
Error getting from smbd:
Probing module 'recycle'
Probing module 'recycle': Trying to load from /opt/lib/vfs/recycle.so
Error loading module '/opt/lib/vfs/recycle.so': /opt/lib/vfs/recycle.so: undefined symbol: DEBUGLEVEL_CLASS
error probing vfs module 'recycle': NT code 0xc0000001
smbd_vfs_init: vfs_init_custom failed for recycle
vfs_init failed for service personal (is share on NAS320)
setting sec ctx (504, 500) - sec_ctx_stack_ndx = 0
First to find library which covers the DEBUGLEVEL_CLASS.
Should normally be found within the path via the env.
...
LD_LIBRARY_PATH=/usr/local/zy-pkgs/lib
...
PATH=/opt/bin:/opt/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/zyxel/sbin:/usr/local/zy-pkgs/bin:/zyxel/htp
If you have any ideas, please add.....
NSA320 FW V4.70(AFO.3) Entware-ng (previous FFP 0.7 on usb )
NAS326 with Entware-ng
Bunch of USB 2 & 3 external disks connected to nas.
NAS326 with Entware-ng
Bunch of USB 2 & 3 external disks connected to nas.
Re: [HOWTO] Update samba (to 3.6.25) using Entware-ng
This issue can't be solved neither using LD_LIBRARY_PATH neither PATH variables. Recompilation of source code with appropriate patch or LDFLAGS is the only one solution.
Re: [HOWTO] Update samba (to 3.6.25) using Entware-ng
Just an update: thinking outlout.
The recycle.so is an vfs module, which should be included into the samba 3.6.25.
I could not find any recycle.so file for samba 3.6.25.
Q1 Maybe a source could be found, to compile it for this samba version.
Q2 If a source is found, how to compile it on/for the zyxel nas.
The recycle.so is an vfs module, which should be included into the samba 3.6.25.
I could not find any recycle.so file for samba 3.6.25.
Q1 Maybe a source could be found, to compile it for this samba version.
Q2 If a source is found, how to compile it on/for the zyxel nas.
NSA320 FW V4.70(AFO.3) Entware-ng (previous FFP 0.7 on usb )
NAS326 with Entware-ng
Bunch of USB 2 & 3 external disks connected to nas.
NAS326 with Entware-ng
Bunch of USB 2 & 3 external disks connected to nas.
Re: [HOWTO] Update samba (to 3.6.25) using Entware-ng
Found the sources on https://download.samba.org/pub/samba/st ... .25.tar.gz
( date is 2015-02-23, probably the latest sec.issues not included ? )
The file vfs_recycle.c is in there.
Now this has to be compiled for the NSA320. Never done that.
Can anybody advise ?
( date is 2015-02-23, probably the latest sec.issues not included ? )
The file vfs_recycle.c is in there.
Now this has to be compiled for the NSA320. Never done that.
Can anybody advise ?
NSA320 FW V4.70(AFO.3) Entware-ng (previous FFP 0.7 on usb )
NAS326 with Entware-ng
Bunch of USB 2 & 3 external disks connected to nas.
NAS326 with Entware-ng
Bunch of USB 2 & 3 external disks connected to nas.
Re: [HOWTO] Update samba (to 3.6.25) using Entware-ng
Just recompilation will not help you. This task requires experience and knowledge, besides your source doesn't includes security patches.
Ask Mijzelf to do this.
Ask Mijzelf to do this.
Re: [HOWTO] Update samba (to 3.6.25) using Entware-ng
Hi Mijzelf,
Could you include the security pathces and compile this for the NSA320 ?
Many thanks,
Could you include the security pathces and compile this for the NSA320 ?
Many thanks,
NSA320 FW V4.70(AFO.3) Entware-ng (previous FFP 0.7 on usb )
NAS326 with Entware-ng
Bunch of USB 2 & 3 external disks connected to nas.
NAS326 with Entware-ng
Bunch of USB 2 & 3 external disks connected to nas.