真的很挣扎...
我有一个家庭网络,其中有 Windows 和 Mac OS 机器。两者都无法连接到 Ubuntu 服务器。目标是拥有一个为整个网络共享存储的 Ubuntu 服务器。
testparm 的输出:
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: The "syslog" option is deprecated
Processing section "[printers]"
Processing section "[print$]"
Processing section "[storage]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
# Global parameters
[global]
server string = %h server (Samba, Ubuntu)
server role = standalone server
security = USER
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
wins support = Yes
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[storage]
path = /mnt/storage
valid users = adrian
read only = No
create mask = 0777
directory mask = 0777
directory mode = 0777
guest ok = Yes
所有股票上市:
smbclient -L //192.168.0.210/storage -U adrian
WARNING: The "syslog" option is deprecated
Enter adrian's password:
域=[工作组] 操作系统=[Windows 6.1] 服务器=[Samba 4.3.11-Ubuntu]
Sharename Type Comment
--------- ---- -------
print$ Disk Printer Drivers
storage Disk
IPC$ IPC IPC Service (server server (Samba, Ubuntu))
域=[工作组] 操作系统=[Windows 6.1] 服务器=[Samba 4.3.11-Ubuntu]
Server Comment
--------- -------
SERVER server server (Samba, Ubuntu)
Workgroup Master
--------- -------
WORKGROUP SERVER
查阅了很多指南,尝试了很多不同的组合,但都没有成功,希望我漏掉了一些简单的东西。寻求帮助!提前致谢。