.单机版samba设置 /etc/samba/smb.conf

#与主机相关的设置信息

workgroup = workgroup

netbios name = lxshSMBsvr

server string = This is lxsh samba server

#与语言方面有关的设置项目

unix charset = utf8

display charset = utf8

dos charset = cp936

#与登陆文件有关的设置项目

log file = /var/log/samba/log.%m

max log size = 50

#与密码相关的设置项目

security = user

passdb backend = tdbsam

#不加载打印机

load printers = no

[homes]

 comment = Home Directories

 browseable = no

 writeable = yes

 create mode = 0664

 directory mode = 0775

[software]

 comment = lxshanghai software

 path = /smb/software

 browseable = yes

 writeable = yes

[sales]

 comment = sales is files

 path = /smb/sales-dept

 browseable = yes

 writeable = yes

[branch]

 comment = branch is files

 path = /smb/branch

 browseable = yes

 writeable = yes

#[public-files]

#  comment = public files

#  path = /smb/public-files

#  browseable = yes

#  writeable = yes

[SME]

 comment = SME dept files

 path = /smb/SME

 browseable = yes

 writeable = yes

清除ACL 权限       setfacl -x  u:xiaobang it-dept

 

你可能感兴趣的:(Linux运维常见服务搭建)