在smb.conf
里面设置了文件夹可访问的用户,但是本机Windows
上可以匿名访问,另外一台Ubuntu
主机却不能。
配置文件如下
[global]
workgroup = WORKGROUP
server string = ust
log file = /home/userme/logs/log.%m
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
security = user
usershare allow guests = no
[userdisk777]
comment = userdisk0
path = /home/userme/userdisk0
public = no
read only = yes
valid users = userme
write list = userme
;invalid users = user1 user2
create mask = 0777
directory mask = 0777
有大神能看出来是哪里出了问题吗
1
huntagain2008 2022-01-02 21:02:58 +08:00 via iPhone
本人小白,可以试试 testparm smb.conf 看看实际配置是否正确。
|
2
weqopy 2022-01-02 21:03:31 +08:00
先开一下限制测试,public valid 这些,防火墙关一下,慢慢搞
我之前是 linux 配置,Windows 访问,搞了挺长时间 |
3
LxnChan OP @huntagain2008 配置文件没问题,`testparm`是没问题的
|
5
nbweb 2022-01-03 08:55:27 +08:00 1
[global]
workgroup = WORKGROUP server string = Samba Server %v netbios name = debian security = user map to guest = bad user guest account = nobody dns proxy = no create mask = 0777 directory mask = 0777 force create mode = 0777 force directory mode = 0777 [Public] path = /mnt/Public browseable = yes public = yes available = yes oplocks = yes map archive = no guest ok = yes writable = yes 这是我 debian 里面的,参考一下。 |