A
A
Alexander2020-03-23 11:19:36
linux
Alexander, 2020-03-23 11:19:36

How to fix visibility of SMB server in windows network environment?

Installed samba server on Debian machine.
In the windows 10 network environment, the machine is not visible, that just did not try, nothing comes out. Once upon a time I solved the problem, but I do not remember how. I know about SMB 1.0 activation, but this option is not suitable.

current smb.conf

[global]
   workgroup = WORKGROUP
   netbios name = Asus
   server string = Asus
   wins support = yes
   local master = no
   preferred master = yes
   server min protocol = SMB2
   client min protocol = SMB2
   client max protocol = NT1
   lanman auth = no
   ntlm auth = yes
   client lanman auth = no
   name resolve order = bcast lmhosts host wins
   server role = standalone server
   obey pam restrictions = no
   usershare allow guests = yes
   guest account = nobody
   map to guest = bad user
   load printers = no
   
[Public]
   path = /shared/Public
   public = yes
#  only guest = yes
   writable = yes
   printable = no
   create mask = 0777
   directory mask = 0777
   force create mode = 0777
   force directory mode = 0777
   veto files = /._*/.DS_Store/.Spotlight-V100/.TemporaryItems/Thumbs.db
   delete veto files = yes
   inherit permissions = yes

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
RZYR, 2020-03-24
@RZYR

There is such a problem.
Moreover, Samba is visible in Openmediavault, I copied the config from it to a machine with pure Debian - it does not help.
Samba is also visible from the Synology NAS. So it's not about Windows settings, but about WS-Discovery.

wget https://github.com/christgau/wsdd/archive/master.zip
unzip master.zip
sudo mv wsdd-master/src/wsdd.py wsdd-master/src/wsdd
sudo cp wsdd-master/src/wsdd /usr/bin
sudo cp wsdd-master/etc/systemd/wsdd.service /etc/systemd/system
sudo nano /etc/systemd/system/wsdd.service

#Поменять часть файла
.....
[Service]
Type=simple
ExecStartPre=/bin/sleep 2
ExecStart=/usr/bin/wsdd --shortlog
; Replace those with an unprivledged user/group that matches your environment,
; like nobody/nogroup or daemon:daemon or a dedicated user for wsdd
#User=nobody
#Group=nobody
.....
sudo systemctl daemon-reload
sudo systemctl start wsdd
sudo systemctl enable wsdd

You also need to open ports 3702 and 5357

V
Vitaliy K, 2020-03-23
@revenger

Take a look, it might give you an idea.

K
Korben5E, 2020-03-23
@Korben5E

the machine should be seen (in a networked environment)? or to receive stable access to it by name?
if the second - register it in lmhosts
192.168.1.2 Asus #pre
and check in the IP settings to view this file
, you can also wins the server on all computers and run it on samba

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question