# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.
#
# Note:
# SMB1 is disabled by default. This means clients without support for SMB2 or
# SMB3 are no longer able to connect to smbd (by default).
[global]
workgroup = SAMBA
security = user
passdb backend = tdbsam
printing = cups
printcap name = cups
load printers = yes
cups options = raw
# Install samba-usershares package for support
include = /etc/samba/usershares.conf
#[homes]
# comment = Home Directories
# valid users = %S, %D%w%S
# browseable = No
# read only = No
# inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
# printadmin is a local group
write list = printadmin root
force group = printadmin
create mask = 0664
directory mask = 0775
[back]
comment = My Fedora Share
path = /home/back
browseable = yes
writable = yes
[M]
comment = My Fedora Share
path = /home/m
browseable = yes
writable = yes
[Q]
comment = My Fedora Share
path = /home/q
browseable = yes
writable = yes
[P]
comment = My Fedora Share
path = /home/p
browseable = yes
writable = yes
# Global parameters
[global]
workgroup = WORKGROUP
dns proxy = No
map to guest = Bad User
netbios name = SAMBASERVER
security = USER
server string = Samba Server %v
idmap config * : backend = tdb
guest account = nobody
guest ok = yes
[1_share]
comment = this is debian
path = /home/gly/下载/
read only = No
browseable = yes
public = yes
writeable = yes
[2_share]
comment = this is debian
path = /jxyp/下载/
read only = No
browseable = yes
public = yes
writeable = yes
sudo setsebool -P samba_export_all_ro on && sudo setsebool -P samba_export_all_rw on && sudo setsebool -P samba_enable_home_dirs on