Added smb CT

This commit is contained in:
2021-09-29 02:03:56 +00:00
parent cc6f043f9e
commit 33d8a9a56a
6 changed files with 149 additions and 3 deletions

View File

@@ -0,0 +1,47 @@
#======================= Global Settings =======================
[global]
workgroup = WORKGROUP
log file = /var/log/samba/log.%m
max log size = 1000
logging = file
panic action = /usr/share/samba/panic-action %d
####### Authentication #######
server role = standalone server
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = never
usershare allow guests = yes
#======================= Share Definitions =======================
[homes]
valid users = %S
browseable = no
comment = Home Directories
create mask = 0700
directory mask = 0700
writeable = yes
#======================= Default (disabled) printer share Definitions =======================
#[printers]
# comment = All Printers
# browseable = no
# path = /var/spool/samba
# printable = yes
# guest ok = no
# read only = yes
# create mask = 0700
#[print$]
# comment = Printer Drivers
# path = /var/lib/samba/printers
# browseable = yes
# read only = yes
# guest ok = no

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>_smb._tcp</type>
<port>445</port>
</service>
<service>
<type>_device-info._tcp</type>
<port>0</port>
<txt-record>model=RackMac</txt-record>
</service>
</service-group>

View File

@@ -0,0 +1,2 @@
# command line parameters for wsdd (consult man page)
WSDD_PARAMS="-p"