Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[SOLVED] Only first device can connect to Samba after restart
Thank you for your donation

Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Solved: Only first device can connect to Samba after restart
23rd Jan, 2018, 10:32 AM
Post: #2
Nachteule Offline
Administrator
******
Posts: 2,406
Joined: Dec 2014
Reputation: 122
RE: Only first device can connect to Samba after restart
After a short test (usually I do not use SAMBA on XBian), I can confirm this issue.

The reason is, smbd process is spawned by inetd process, and this seems not working correctly under Stretch.

For a quick fix, you can

1) disable smbd via inetd: comment out two lines in fild /etc/inetd.conf like this

Code:
###netbios-ssn stream tcp nowait root /usr/sbin/smbd smbd
###microsoft-ds stream tcp nowait root /usr/sbin/smbd smbd

2) comment out RUN_MODE line in file /etc/default/samba

Code:
#RUN_MODE="inetd"

3) make sure that /etc/init/smbd.conf looks like this:

Code:
description "SMB/CIFS File Server"
author      "Steve Langasek <steve.langasek@ubuntu.com>"

start on (local-filesystems and net-device-up)
stop on runlevel [!2345]

respawn

pre-start script
        [ -r /etc/default/samba ] && . /etc/default/samba

        install -o root -g root -m 755 -d /var/run/samba
end script

exec smbd -F

and is not empty

4) reboot
Find all posts by this user
« Next Oldest | Next Newest »
Thread Closed 


Messages In This Thread
Only first device can connect to Samba after restart - Dzintars Bergs - 23rd Jan, 2018, 07:13 AM
RE: Only first device can connect to Samba after restart - Nachteule - 23rd Jan, 2018 10:32 AM
RE: Only first device can connect to Samba after restart - Dzintars Bergs - 24th Jan, 2018, 09:29 AM
RE: Only first device can connect to Samba after restart - tookdrums - 2nd Aug, 2018, 11:20 PM
RE: Only first device can connect to Samba after restart - Nachteule - 1st Jan, 2019, 02:06 AM
RE: Only first device can connect to Samba after restart - victorpatrick - 26th May, 2023, 12:50 PM

Possibly Related Threads...
Thread: Author Replies Views: Last Post
  [PROBLEM] SAMBA with USB mountet Device under RC3 Cre@tsheR 10 27,576 16th Aug, 2015 03:28 AM
Last Post: hbunjes

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 12th Jun, 2025, 01:51 AM Powered By MyBB, © 2002-2025 MyBB Group.