OpenWrt Samba 共享配置 |
您所在的位置:网站首页 › openwrt配置samba权限 › OpenWrt Samba 共享配置 |
OpenWrt Samba 共享配置 发布于
2015 年 6 月 9 日
作者
jebbs 安装 Samba 软件以及 Web 配置界面 安装 “luciappsamba” 时会自动安装他的依赖项, “samba36server” ,安装好后,如果在 WEB 界面中没 有找到共享的配置,可以重启路由,或者通过以下命令清除界面缓存: 修改配置模板 由于 OpenWRT 添加用户需要额外安装 shadow 软件包,而 OpenWRT 本身又不太建议这样做,所以直接 以 root 配置,因此不能禁用 root 。 编辑 /etc/samba/smb.conf.template ,注释掉 invalid users = root 即可。这一步也可以在 Web 界面下 进行(建议)。 用户设置 1 2 opkg update opkg install
luci‐app‐samba 1 rm
/tmp/luci‐indexcache 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 [global]
netbios name = |NAME|
display charset = |CHARSET|
interfaces = |INTERFACES|
server string = |DESCRIPTION|
unix charset = |CHARSET|
workgroup = |WORKGROUP|
browseable = yes
deadtime = 30
domain master = yes
encrypt passwords = true
enable
core files = no
guest account = nobody
guest ok = yes
#invalid users = root
local
master = yes
load printers = no
map to guest = Bad User
max protocol = SMB2
min receivefile size = 16384
null passwords = yes
obey pam restrictions = yes
os level = 20
passdb backend = smbpasswd
preferred master = yes
printable = no
security = user
smb encrypt = disabled
smb passwd
file
= /etc/samba/smbpasswd
socket options = TCP_NODELAY IPTOS_LOWDELAY
syslog = 2
use sendfile = yes
writeable = yes |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |