家里局域网有3个samba服务器
- 玩客云 开启samba 为了 windows 10共享,开启了密码
- 手机OPPO 搞的 linux玩,使用网上复制的 samba 配置,不用密码登陆
- 香橙派 安装 Linux 和 samba 服务,使用默认配置,自己不知道怎么改成加密登陆
现在 Windows 10 / 11 访问香橙派。使用手机安装的samba的配置,不会提示我输入密码。
cat /etc/samba/smb.conf
[global]
workgroup = WORKGROUP
max log size = 1000
logging = file
panic action = /usr/share/samba/panic-action %d
server role = standalone server
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
usershare allow guests = yes
[homes]
comment = Home Directories
browseable = no
read only = yes
create mask = 0700
directory mask = 0700
valid users = %S
[www]
comment = Network Logon Service
path = /home/samba/
guest ok = yes
read only = no
Windows 端按下面文章设置