Zyxel NSA 320 being able to choose which samba version to use

Options

I have a Zyxel NSA320 working with SMBv2, which I followed the enabling 3rd party repository procedure, install the Entware-ng zyxel-samba-replacement package, opkg update, opkg install zyxel-samba-replacement, etc...

Everything has been working correctly for a long time, and without any problems.

However, I wanted to carry out some tests and needed to get the original version of samba (3.5.6) working, but without changing anything else in the NAS configuration.

I tried deleting the symbolic link:

samba.sh -> /opt/etc/init.d/S09ZyXELSambaReplacement

and I put the file /etc/init.d/samba.replaced.sh as samba.sh

but when I restart it, the same version is running, and the symbolic link is configured again.

So, is it possible (and easy) to get the previous samba version (3.5.6) working again?

The objective was to be able to change between samba versions easily.

Accepted Solution

  • Mijzelf
    Mijzelf Posts: 2,645  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    Answer ✓
    Options

    Switching to the 'old' samba should be as simple as

    /opt/etc/init.d/S09ZyXELSambaReplacement stop
    

    And reverting back to new samba

    /opt/etc/init.d/S09ZyXELSambaReplacement start
    

    If you want to stay in the old samba without removing the SambaReplacement package:

    /opt/etc/init.d/S09ZyXELSambaReplacement stop
    chmod -x /opt/etc/init.d/S09ZyXELSambaReplacement
    

    That way the script is not longer executed on boot.

All Replies

  • Mijzelf
    Mijzelf Posts: 2,645  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    Answer ✓
    Options

    Switching to the 'old' samba should be as simple as

    /opt/etc/init.d/S09ZyXELSambaReplacement stop
    

    And reverting back to new samba

    /opt/etc/init.d/S09ZyXELSambaReplacement start
    

    If you want to stay in the old samba without removing the SambaReplacement package:

    /opt/etc/init.d/S09ZyXELSambaReplacement stop
    chmod -x /opt/etc/init.d/S09ZyXELSambaReplacement
    

    That way the script is not longer executed on boot.

  • JoaoJ
    JoaoJ Posts: 2
    First Comment
    Options

    Thanks Mijzelf.

Consumer Product Help Center