防火墙已经关闭(iptables -F),selinux里面只有semaneger.conf,找不到关键词disable,不知道应该在哪里输入SELinux = disable
现smb.conf配置如下:
[global]
workgroup = WORKGROUP
security = user
username map = /etc/samba/smbusers
server string = %h server (Samba, Ubuntu)
dns proxy = no
interfaces = 127.0.0.0/8 eth0
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
server role = standalone server
passdb backend = tdbsam
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
logon path = \\%N\profiles\%U
usershare allow guests = yes
[share]
comment = Shared Folder with username and password
path = /home/ubuntu/share
public = yes
writeable = yes
valid user = hrliu
creat mask = 0700
directory = 0700
force user = nobody
force group = nogroup
available = yes
browseable = yes


运行-->\\172.25.146.101\share,出现如下:

求各位大神赐教!