我的配置:(sudo gedit /etc/samba/smb.conf)
代码: 全选
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2008/06/19 19:32:07
[global]
dos charset = cp936
display charset = UTF-8
server string = nany_ubuntu
map to guest = Bad User
obey pam restrictions = Yes
passdb backend = tdbsam
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* .
username map = /etc/samba/smbusers
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
invalid users = root
[win2ubuntu]
comment = Shared Folder with username and password
path = /home/win2ubuntu
valid users = nany
force user = nobody
force group = nogroup
read only = No
create mask = 0700
directory mask = 0700
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No
[print$]
大家帮帮我啊~~