OpenWrt创建新用户及搭建samba服务器
时间:2021-04-10 13:08:52
收藏:0
阅读:0
1.安装依赖的软件包
opkg install shadow-common
opkg install shadow-useradd
2、搭建samba服务器
opkg update
opkg install samba36-server
opkg install luci-app-samba
opkg install luci-i18n-samba-zh-cn
samba添加共享目录修改/etc/config/samba,添加配置如下:
config ‘sambashare’
option ‘read_only’ ‘no’
option ‘create_mask’ ’0700′
option ‘dir_mask’ ’0700′ #权限
option ‘guest_ok’ ‘yes’
option ‘path’ ‘/root’ #共享文件路径
option ‘name’ ‘root’
给Samba创建用户访问:
smbpasswd -a root
重启samba
/etc/init.d/samba restart
评论(0)