Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.

View Entry Info: box invisible on network

Category:
Possible Bug
What ViX Image build number are you using?
Please provide your ViX Team image build number. Menu > Information > About > Build number > ENTER THIS NUMBER e.g. 4.2.028
5.4.003
Have you tried a flash WITHOUT settings restore?
Have you tried this? PLEASE SELECT YES OR NO.
Yes
Have you tried a flash WITH settings restore?
Have you tried this? PLEASE SELECT YES OR NO.
Yes
Attachments
Page 5 of 6 FirstFirst ... 3456 LastLast
Results 61 to 75 of 77

Thread: box invisible on network

  1. #61
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    Here we go (9 months self isolating does strange things to you) ....

    /etc/samba after a clean install of 5.4.003, 68 packages installed with samba or smb in the name (samba not yet installed) ....

    Code:
    root@et10000:~# ls -lR /etc/samba
    /etc/samba:
    drwxr-xr-x    2 root     root           528 Nov 11 12:24 distro
    -rw-r--r--    1 root     root            20 Oct  8 05:12 lmhosts
    drwxr-xr-x    2 root     root           376 Dec 29 15:12 private
    -rw-r--r--    1 root     root           744 Oct  8 05:12 smb-user.conf
    -rw-r--r--    1 root     root            95 Oct  8 05:12 smb.conf
    
    /etc/samba/distro:
    -rw-r--r--    1 root     root            61 Oct  8 05:12 smb-branding.conf
    -rw-r--r--    1 root     root          1457 Oct  8 05:12 smb-global.conf
    -rw-r--r--    1 root     root           586 Oct  8 05:12 smb-shares.conf
    lrwxrwxrwx    1 root     root            13 Nov 11 12:24 smb-vmc.conf -> smb-vmc.samba
    -rw-r--r--    1 root     root            29 Oct  8 05:12 smb-vmc.samba
    
    /etc/samba/private:
    -rw-------    1 root     root        430080 Dec 29 15:12 secrets.tdb
    -rw-------    1 root     root           204 Dec 29 15:13 smbpasswd
    -rw-r--r--    1 root     root            80 Oct  8 05:12 users.maps
    After installing samba, 81 packages now installed (the same as a "working" samba), but /etc/samba has not changed and in particular, nmbd isn't running.

    This is what "works" (quite different to the above) and is the same on an et10k and ultimo4k....

    Code:
    root@et10000:/tmp/etc# ls -lR samba
    samba:
    drwxr-xr-x    2 root     root           180 Dec 29 14:38 distro
    -rw-r--r--    1 root     root            20 Jan 27  2018 lmhosts
    drwxr-xr-x    2 root     root           120 Dec 29 14:38 private
    -rw-r--r--    1 root     root           744 Jan 27  2018 smb-user.conf
    -rw-r--r--    1 root     root            95 Jan 27  2018 smb.conf
    
    samba/distro:
    -rw-r--r--    1 root     root           168 Jan 27  2018 smb-branding.conf
    -rw-r--r--    1 root     root          1189 Jan 27  2018 smb-global.conf
    -rw-r--r--    1 root     root           253 Jan 27  2018 smb-insecure.conf    (additional file)
    -rw-r--r--    1 root     root           615 Jan 27  2018 smb-secure.conf      (additional file)
    -rw-r--r--    1 root     root           586 Jan 27  2018 smb-shares.conf
    lrwxrwxrwx    1 root     root            13 Dec 29 14:38 smb-vmc.conf -> smb-vmc.samba
    -rw-r--r--    1 root     root            29 Jan 27  2018 smb-vmc.samba
    
    samba/private:
    -rw-------    1 root     root        430080 Mar 20  2018 secrets.tdb
    -rw-------    1 root     root           204 Oct 13 09:40 smbpasswd
    -rw-r--r--    1 root     root            28 Oct 26  2019 users-insecure.map
    -rw-r--r--    1 root     root            80 Jan 27  2018 users.map
    Something updated the above many years(2018?) ago but what is anybody's guess.

  2. The Following 2 Users Say Thank You to ccs For This Useful Post:

    cactikid (29-12-20)

  3. #62
    BrokenUnusableAccount
    @ccs
    Hang on, the first listing is /etc/samba while the second seems to be /tmp/etc/samba which doesn't even seem to exist on my Zgemma H7.

  4. #63
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    Quote Originally Posted by BefuddledBrian View Post
    @ccs
    Hang on, the first listing is /etc/samba while the second seems to be /tmp/etc/samba which doesn't even seem to exist on my Zgemma H7.
    I unpacked a settings backup of the et10k into /tmp to get hold of the "working" /etc/samba, just saved a bit of time. Just testing.

  5. The Following User Says Thank You to ccs For This Useful Post:


  6. #64
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    Another day, another idea. I wondered how I could possibly have got my ultimo4k working for the first time back in March.

    The first image was 5.3.019, so I flashed it onto the et10k, no restores.

    Gasp, /etc/samba is the "working" version (date stamps are a bit different from before because of my settings restores over the years) ....

    Code:
    root@vuultimo4k:~# ls -lR /etc/samba
    /etc/samba:
    drwxr-xr-x    2 root     root          4096 Dec 30 10:40 distro
    -rw-r--r--    1 root     root            20 Oct 26  2019 lmhosts
    drwxr-xr-x    2 root     root          4096 Dec 30 10:40 private
    -rw-r--r--    1 root     root           744 Oct 26  2019 smb-user.conf
    -rw-r--r--    1 root     root            95 Oct 26  2019 smb.conf
    
    /etc/samba/distro:
    -rw-r--r--    1 root     root           168 Oct 26  2019 smb-branding.conf
    -rw-r--r--    1 root     root          1177 Oct 26  2019 smb-global.conf
    -rw-r--r--    1 root     root           386 Oct 26  2019 smb-insecure.conf
    -rw-r--r--    1 root     root           787 Oct 26  2019 smb-secure.conf
    -rw-r--r--    1 root     root           586 Oct 26  2019 smb-shares.conf
    lrwxrwxrwx    1 root     root            13 Dec 30 10:40 smb-vmc.conf -> smb-vmc.samba
    -rw-r--r--    1 root     root            29 Oct 26  2019 smb-vmc.samba
    
    /etc/samba/private:
    -rw-------    1 root     root           204 Dec 30 10:43 smbpasswd
    -rw-r--r--    1 root     root            28 Oct 26  2019 users-insecure.map
    -rw-r--r--    1 root     root            80 Oct 26  2019 users.map
    root@vuultimo4k:~#
    What is really odd, everything I'd expect to be running after installing samba is already running, so all boxes see each other (and themselves).....

    Code:
    root@et10000:~# ps -AFH | grep -e "[sn]mbd\|wsd\d"
    root       701     1  0  9519  8684   1 11:18 ?        00:00:00   /usr/sbin/smbd
    root       705   701  0  8817  4144   1 11:18 ?        00:00:00     /usr/sbin/smbd
    root       706   701  0  8815  3888   1 11:18 ?        00:00:00     /usr/sbin/smbd
    root       709     1  0  6237  3884   1 11:18 ?        00:00:00   /usr/sbin/nmbd
    root       718     1  0   498  1028   1 11:18 ?        00:00:00   /usr/sbin/wsdd
    root@et10000:~#
    Installing Utilities/Samba comes up with the green "running" box for an instant, followed by the invite to install packagegroup-base-smbfs-server.

    That installs ok, but still needs an opkg update first.

    So, Samba has changed since March, and affects both the et10k and ultimo4k (and probably everything else).

  7. The Following User Says Thank You to ccs For This Useful Post:

    cactikid (30-12-20)

  8. #65
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    If I stop /etc/samba/distro/smb-insecure.conf from running by using the "non-working" version of smb-branding.conf thus...

    Code:
    root@et10000:/etc/samba/distro# cat smb-branding.conf
    [global]
            server string = OpenViX %h network services
    
    root@et10000:/etc/samba/distro# cat smb-branding.conf.orig
    [global]
            server string = OpenViX %h network services
    
    #       include = /etc/samba/distro/smb-secure.conf
            include = /etc/samba/distro/smb-insecure.conf
    
    root@et10000:/etc/samba/distro#
    I end up with these still running....

    Code:
    root@et10000:~# ps -AFH | grep -e "[sn]mbd\|wsd\d"
    root       613     1  0  6235  3640   0 12:38 ?        00:00:00   /usr/sbin/nmbd
    root       620     1  0   498  1016   0 12:38 ?        00:00:00   /usr/sbin/wsdd
    root@et10000:~#
    Not quite what I expected, as nmbd not running is part of the original problem.

  9. The Following User Says Thank You to ccs For This Useful Post:


  10. #66
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    Back to 5.4.003, before installing Samba,

    Code:
    root@et10000:~# ps -AFH | grep -e "[sn]mbd\|wsd\d"
    finds nothing, which is what you'd expect, unlike 5.3.019 (post #64) which had everything running.

    Commenting out the line "disable netbios = Yes" from /etc/samba/distro/smb-global.conf and installing Samba produces....
    Code:
    root@et10000:~# ps -AFH | grep -e "[sn]mbd\|wsd\d"
    root       602     1  0  7933  7832   1 13:15 ?        00:00:00   /usr/sbin/smbd
    root       606   602  0  7293  2872   0 13:15 ?        00:00:00     /usr/sbin/smbd
    root       607   602  0  7291  2504   1 13:15 ?        00:00:00     /usr/sbin/smbd
    root       609     1  0  4794  2888   1 13:15 ?        00:00:00   /usr/sbin/nmbd
    root       617     1  0   499  1004   0 13:15 ?        00:00:00   /usr/sbin/wsdd
    root@et10000:~#
    which, I think, is what's wanted, with every box seeing what you'd expect.

  11. The Following User Says Thank You to ccs For This Useful Post:


  12. #67
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    I can find references to smb-global.conf on github, before netbios was disabled...

    Code:
    https://github.com/oe-alliance/oe-alliance-core/blob/e1a528415e6e243a2a6e9af17edc211b3b859b48/meta-oe/recipes-connectivity/samba/samba-3.6.25/smb-global.conf
    and after

    Code:
    https://github.com/oe-alliance/oe-alliance-core/blob/4.4/meta-oe/recipes-connectivity/samba/samba/smb-global.conf
    but no history, probably because of Samba version changes.

    There are also references to the secure.conf and insecure.conf files here...

    Code:
    https://github.com/oe-alliance/oe-alliance-core/tree/e1a528415e6e243a2a6e9af17edc211b3b859b48/meta-oe/recipes-connectivity/samba/samba-3.6.25

  13. The Following User Says Thank You to ccs For This Useful Post:


  14. #68
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    Samba uses the directory /etc/samba to store its configuration files.
    This directory comes as part of Vix, whether you use Samba or not.

    My current version of Vix (5.4.003) is ok because I've had a working version for a number of years, and a settings restore overwrites
    everything in /etc/samba. There is a fundamental problem here, because a new version of Samba was released a while ago, with
    a new set of config files in /etc/samba. A system restore overwrites all these file, so I'm running the latest version of the samba packages
    with an old set of config files
    .

    Commenting out the line "disable netbios = Yes" from /etc/samba/distro/smb-global.conf works, but I guess is not the correct way to do it.
    I'm assuming the file /etc/smb-user.conf should be edited instead, with the line "disable netbios = No", but I've not tried it yet.

  15. The Following User Says Thank You to ccs For This Useful Post:


  16. #69
    BrokenUnusableAccount
    Quote Originally Posted by ccs View Post
    Samba uses the directory /etc/samba to store its configuration files.
    This directory comes as part of Vix, whether you use Samba or not.

    My current version of Vix (5.4.003) is ok because I've had a working version for a number of years, and a settings restore overwrites
    everything in /etc/samba. There is a fundamental problem here, because a new version of Samba was released a while ago, with
    a new set of config files in /etc/samba. A system restore overwrites all these file, so I'm running the latest version of the samba packages
    with an old set of config files
    .
    I think that probably doesn't matter.
    Samba just looks at /etc/samba/smb.conf and also at any files mentioned in include lines in that first file.



    Quote Originally Posted by ccs View Post
    Commenting out the line "disable netbios = Yes" from /etc/samba/distro/smb-global.conf works, but I guess is not the correct way to do it.
    I'm assuming the file /etc/smb-user.conf should be edited instead, with the line "disable netbios = No", but I've not tried it yet.
    Just bear in mind that smb.conf seems to be divided into sections, and the disable netbios line needs to be in a [Global] section.

    I'm wondering if two boxs that both have "disable netbios = Yes" would be able to see each other.

  17. #70
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    Quote Originally Posted by BefuddledBrian View Post
    Just bear in mind that smb.conf seems to be divided into sections, and the disable netbios line needs to be in a [Global] section.
    The file that needs changing is /etc/samba/smb-user.conf, not smb.conf

    This one line change works (at last) using the /etc/samba directory which comes with 5.4.003, no settings restore in sight, and nmbd starts ...

    Code:
    ## User changes to Samba config go here
    
    ## You can overrule the insecure defaults and enforce password
    ## protected access to shares by uncommenting the following
    ## line, including the secure settings:
    
    [global]
    #       include = /etc/samba/distro/smb-secure.conf
            disable netbios = No
    
    ## You can hide and veto access to certain directories, e.g. mount points of
    ## other boxes in order to prevent round trips through your LAN
    ## In Samba 4.x this needs to be configured per share:
    
    [Root]
    #       veto files = /ThisBox/OtherBox/AnotherBox/YetAnotherBox/
    #       hide files = /ThisBox/OtherBox/AnotherBox/YetAnotherBox/
    
    [Harddisk]
    #       veto files = /ThisBox/OtherBox/AnotherBox/YetAnotherBox/
    #       hide files = /ThisBox/OtherBox/AnotherBox/YetAnotherBox/
    Quote Originally Posted by BefuddledBrian View Post
    I'm wondering if two boxs that both have "disable netbios = Yes" would be able to see each other.
    With netbos disabled, nmdb doesn't run, boxes can only see boxes that have it running.

  18. The Following User Says Thank You to ccs For This Useful Post:


  19. #71
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    Quote Originally Posted by BefuddledBrian View Post
    I think that probably doesn't matter.
    Samba just looks at /etc/samba/smb.conf and also at any files mentioned in include lines in that first file.
    The contents of the include files it was looking at before were different, but, in practice, added up to being very similar to the latest samba directory.
    Unfortunately, my uniq/sort/diff attempts struggled to produce a definitive list of exceptions, but there were some.

  20. The Following User Says Thank You to ccs For This Useful Post:


  21. #72
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    If you get the dreaded "/media/autofs/..... file does not exist" when selecting a remote location in movielist,
    have a look in /etc/auto.network If you find 2 entries for the failing location, delete them both while enigma2 is stopped.
    Restart and then use network manager to delete the location, and then network browser to re-create.

  22. The Following 2 Users Say Thank You to ccs For This Useful Post:

    cactikid (01-01-21)

  23. #73
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    One last observation. If you remove the samba service via network/utilities/samba then smbd, nmbd and wsdd no longer run, which is what you'd expect.

    However, '/etc/samba' is not removed from the entry "config.backupmanager.backupdirs=" in /etc/enigma2/settings.

    So /etc/samba will be in settings backups for evermore.
    .
    This means that if you have an old version of /etc/samba (like I had), removing the samba service, taking a settings backup, reflashing a new image followed by a settings restore won't have the desired effect, the old one will come back.

    ( '/etc/samba' is not in the settings entry "config.backupmanager.backupdirs=" after a clean flash of a new release, it is put there after you install samba for the very first time.)
    Last edited by ccs; 02-01-21 at 10:30.

  24. The Following 2 Users Say Thank You to ccs For This Useful Post:

    Andy_Hazza (02-01-21),cactikid (02-01-21)

  25. #74
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    .... and for anyone who thinks they may have come up with a workaround (removing the /etc/samba reference in settings for example), think again, because backupmanager puts it back in again!

    So it looks like /etc/samba is backed up even if you've never installed samba.
    Last edited by ccs; 02-01-21 at 12:35.

  26. The Following User Says Thank You to ccs For This Useful Post:

    cactikid (02-01-21)

  27. #75

    Title
    Forum Supporter
    Donated Member
    Join Date
    Jun 2010
    Posts
    3,010
    Thanks
    1,347
    Thanked 428 Times in 392 Posts
    But i have used an earlier image and setup from start and box is now seen,for the moment.

Page 5 of 6 FirstFirst ... 3456 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.