|
|
我用linux as4自带的samba做共享服务器,用user模式,共享两个目录,一个目录对所有用户有只读权限,对管理员和管理员组有读写权限,另外一个目录只对管理员开放,现在访问该服务器总是弹出让我输入用户名和密码的窗口,请问这个怎么修改才能不出来用户名和密码验证。
一下是我的samba文件,请大家给看看哪里有问题
[global]
log file = /var/log/samba/%m.log
load printers = yes
guest account = nobody
smb passwd file = /etc/samba/smbpasswd
idmap gid = 16777216-33554431
socket options = TCP_NODELAY SO_SNDBUF=32768 SO_RCVBUF=32768
encrypt passwords = yes
winbind use default domain = no
template shell = /bin/false
dns proxy = no
server string = File Server
idmap uid = 16777216-33554431
default = global
workgroup = workgroup
os level = 20
auto services = global
printcap name = /etc/printcap
security = user
max log size = 50
[homes]
comment = Home Directories
browseable = no
writable = yes
public = yes
[sysadmin]
writeable = yes
only user = yes
path = /opt/sysadmin
write list = user,@admin
create mask = 0755
comment = sysadmin home
valid users = user,@admin
[public]
writeable = yes
public = yes
write list = user,@admin
path = /opt/public
force group = admin
其中sysadmin是管理员访问目录,需要输入用户名和密码,public是公共目录,不需要输入用户名和密码就可以访问。 |
|