|
|
smb.conf
[global]
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
security = user
workgroup = workgroup
# idmap gid = 10000-20000
# idmap uid = 10000-20000
printcap name = /etc/printcap
load printers = yes
printing = cups
cups options = raw
[printers]
comment = All Printers
path = /var/spool/samba
# browseable = yes
# public = yes
writable = no
printable = yes
read only = No
[zjtest]
inherit acls = Yes
path = /home/zjtest
read only = No
## Share disabled by YaST
# [netlogon]
想把一个文件夹完全共享,修改security =share,注释[global]前三条设置.但启动samba后,smb.conf恢复原样。删掉那三条设置,从win共享仍然需要密码。 |
|