家里局域网有3个samba服务器

    1. 玩客云 开启samba 为了 windows 10共享,开启了密码
    1. 手机OPPO 搞的 linux玩,使用网上复制的 samba 配置,不用密码登陆
    1. 香橙派 安装 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 = *Entersnews*spassword:* %n
 *Retypesnews*spassword:* %n
 *passwordsupdatedssuccessfully* .

   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 端按下面文章设置

Windows10 21h2 LTSC 企业版无法访问samba网络共享问题及解决!

https://lyvba.com/index.php/archives/691/


0 条评论

发表回复

Avatar placeholder

您的邮箱地址不会被公开。 必填项已用 * 标注