How to make samba server visible in Windows 10 network.

Since Windows 10 Fall Creators Update, 1709 RS3, Microsoft no longer install SMBv1 by default because of the security reason. reference
This article introduces a method to make samba server visible in Windows 10 network without enable SMBv1protocol.

# wget https://raw.githubusercontent.com/christgau/wsdd/master/src/wsdd.py
# opkg install python3-light python3-codecs python3-ctypes python3-logging python3-email nohup

Create a init script. reference
# vi /etc/init.d/wsdd
Add following text to wsdd: 
#!/bin/sh /etc/rc.common
# wsdd script
# Copyright (C) 2007 OpenWrt.org
START=64
STOP=64
start() {
        echo start
        nohup python3 /root/wsdd.py -i br-lan >/dev/null 2>&1 &
        # commands to launch application
}
stop() {
        echo stop
        pid=`pgrep -f "python3 /root/wsdd.py -i br-lan"`
        kill $pid
        # commands to kill application
}
# chmod +x /etc/init.d/wsdd
Test it: 
Start: 
# /etc/init.d/wsdd start
Enable startup
# /etc/init.d/wsdd enable

Comments

Popular posts from this blog

Deploy wheel build environment with MSVC v141 2017 on Python (Anaconda)