Remove "private dir" from smb.conf template
[autocluster.git] / base / all / root / scripts / cluster_configure / templates / rhel / 50.samba / 3.4# / files / etc / samba / smb.conf
1 [global]
2         # enable clustering
3         clustering=yes
4         ctdb:registry.tdb=yes
5         ctdbd socket = !!|ctdb_socket()!!
6
7         security = !!|"ADS" if self.config.get("package:samba", "auth_method") == "winbind" else "USER"!!
8         auth methods = guest sam !!|"winbind" if self.config.get("package:samba", "auth_method") == "winbind" else ""!!
9
10         netbios name = !!cluster!!
11         workgroup = !!workgroup!!
12         realm = !!realm!!
13         server string = "Clustered Samba"
14         disable netbios = yes
15         disable spoolss = yes
16         fileid:mapping = fsname
17         use mmap = yes
18         gpfs:sharemodes = yes
19         gpfs:leases = yes
20         passdb backend = tdbsam
21         preferred master = no
22         !!|"" if self.config.get("package:samba", "auth_method") == "winbind" else "#"!!idmap backend = tdb2
23         !!|"" if self.config.get("package:samba", "auth_method") == "winbind" else "#"!!idmap:cache = no
24         !!|"" if self.config.get("package:samba", "auth_method") == "winbind" else "#"!!idmap gid = 10000000-11000000
25         !!|"" if self.config.get("package:samba", "auth_method") == "winbind" else "#"!!idmap uid = 10000000-11000000
26         kernel oplocks = yes
27         syslog = 1
28         host msdfs = no
29         notify:inotify = no
30         vfs objects = shadow_copy2 syncops gpfs fileid
31         shadow:snapdir = .snapshots
32         shadow:fixinodes = yes
33         wide links = no
34         smbd:backgroundqueue = False
35         read only = no
36         use sendfile = yes
37         strict locking = yes
38         posix locking = yes
39         large readwrite = yes
40         force unknown acl user = yes
41         nfs4:mode = special
42         nfs4:chown = yes
43         nfs4:acedup = merge
44         nfs4:sidmap = /etc/samba/sidmap.tdb
45         map readonly = no
46         ea support = yes
47         !!|"" if self.config.get("package:samba", "auth_method") == "winbind" else "#"!!groupdb:backend = tdb
48         !!|"" if self.config.get("package:samba", "auth_method") == "winbind" else "#"!!winbind:online check timeout = 30
49         !!|"" if self.config.get("package:samba", "auth_method") == "winbind" else "#"!!template shell = /usr/bin/rssh
50         !!|"" if self.config.get("package:samba", "auth_method") == "winbind" else "#"!!template homedir = !!chroot_dir!!
51         dmapi support = no
52
53 !!%export:format("[%s]\n\tpath = %s\n\tcomment = %s\n\tguest ok = yes\n\tread only = no\n\tbrowseable = yes\n\n", ["name", "directory", "comment"])!!