.單機版samba設定 /etc/samba/smb.conf

DevOps搬磚博主發表於2018-10-29

#與主機相關的設定資訊

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

 

相關文章