87 lines
2.3 KiB
Plaintext
87 lines
2.3 KiB
Plaintext
|
[global]
|
||
|
unix charset = UTF-8
|
||
|
netbios name = %HOSTNAME
|
||
|
server string =
|
||
|
workgroup = %DOMAIN
|
||
|
os level = 64
|
||
|
preferred master = no
|
||
|
domain master = no
|
||
|
local master = no
|
||
|
security = user
|
||
|
guest account = guest
|
||
|
passdb backend = smbpasswd
|
||
|
encrypt passwords = yes
|
||
|
domain logons = no
|
||
|
log file = /var/log/samba/log.%m
|
||
|
log level = 1
|
||
|
logon path = \\%L\profiles\%U
|
||
|
logon drive = H:
|
||
|
logon home = \\%N\home\%u
|
||
|
logon script = logon.cmd
|
||
|
# ldap machine suffix = ou=Machines
|
||
|
# ldap user suffix = ou=People
|
||
|
# ldap group suffix = ou=Groups
|
||
|
# ldap idmap suffix = ou=Idmap
|
||
|
load printers = yes
|
||
|
printing = cups
|
||
|
printcap name = cups
|
||
|
# add user script= /usr/lib/samba/sbin/smbldap-useradd -a -m '%u'
|
||
|
# delete user script = /usr/lib/samba/sbin/smbldap-userdel %u
|
||
|
# add group script = /usr/lib/samba/sbin/smbldap-groupadd -p '%g'
|
||
|
# delete group script = /usr/lib/samba/sbin/smbldap-groupdel '%g'
|
||
|
# add user to group script = /usr/lib/samba/sbin/smbldap-groupmod -m '%u' '%g'
|
||
|
# delete user from group script = /usr/lib/samba/sbin/smbldap-groupmod -x '%u' '%g'
|
||
|
# set primary group script = /usr/lib/samba/sbin/smbldap-usermod -g '%g' '%u'
|
||
|
# add machine script = /usr/lib/samba/sbin/smbldap-useradd -w '%u'
|
||
|
map acl inherit = Yes
|
||
|
winbind separator = /
|
||
|
|
||
|
[netlogon]
|
||
|
comment = Network Logon Service
|
||
|
path = /var/lib/samba/netlogon
|
||
|
guest ok = Yes
|
||
|
locking = no
|
||
|
|
||
|
[profiles]
|
||
|
comment = Profile Share
|
||
|
path = /var/lib/samba/profiles
|
||
|
read only = no
|
||
|
profile acls = Yes
|
||
|
create mask = 0600
|
||
|
directory mask = 0700
|
||
|
|
||
|
[profdata]
|
||
|
comment = Profile Data Share
|
||
|
path = /var/lib/samba/profdata
|
||
|
read only = No
|
||
|
profile acls = Yes
|
||
|
|
||
|
[homes]
|
||
|
comment = Home Directory for : %u
|
||
|
path = /home/%u
|
||
|
read only = No
|
||
|
browseable = No
|
||
|
root preexec = /usr/lib/samba/sbin/mkhomedir.sh %u
|
||
|
|
||
|
[shared]
|
||
|
comment = Shared files for user %u
|
||
|
path = /home/%u/shared
|
||
|
|
||
|
[print$]
|
||
|
comment = Printer Drivers
|
||
|
path = /var/lib/samba/drivers
|
||
|
browseable = yes
|
||
|
guest ok = no
|
||
|
read only = yes
|
||
|
write list = Administrator
|
||
|
|
||
|
[printers]
|
||
|
comment = SMB Print spool
|
||
|
path = /var/spool/samba
|
||
|
browseable = no
|
||
|
public = yes
|
||
|
guest ok = yes
|
||
|
writable = no
|
||
|
printable = yes
|
||
|
printer admin = Administrator, @ntadmins
|