diff options
author | Matthieu Patou <mat@matws.net> | 2009-11-22 20:50:30 +0300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-01-21 07:11:15 +1300 |
commit | e78626dc2e829e2fce2d63d9e313f5630f125e94 (patch) | |
tree | dd0b5a51fb1aac451e10bbd9e4febb49c5a45e84 /source4/setup | |
parent | 9b70979bc9b39d8dd5bc7752951f855d2dd87294 (diff) | |
download | samba-e78626dc2e829e2fce2d63d9e313f5630f125e94.tar.gz samba-e78626dc2e829e2fce2d63d9e313f5630f125e94.tar.xz samba-e78626dc2e829e2fce2d63d9e313f5630f125e94.zip |
s4: Set acls correctly on all sysvol and scripts shares
Diffstat (limited to 'source4/setup')
-rwxr-xr-x | source4/setup/provision | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source4/setup/provision b/source4/setup/provision index ada976be28..1165eda1a3 100755 --- a/source4/setup/provision +++ b/source4/setup/provision @@ -110,7 +110,7 @@ parser.add_option("--slapd-path", type="string", metavar="SLAPD-PATH", parser.add_option("--setup-ds-path", type="string", metavar="SETUP_DS-PATH", help="Path to setup-ds.pl script for Fedora DS LDAP backend [e.g.:'/usr/sbin/setup-ds.pl']. Required for Setup with Fedora DS backend.") parser.add_option("--nosync", help="Configure LDAP backend not to call fsync() (for performance in test environments)", action="store_true") -parser.add_option("--setfileacl", help="Set NT ACL on files", action="store_true") +parser.add_option("--nosetfileacl", help="Do not set NT ACL on files (set by default)", action="store_true") parser.add_option("--ldap-dryrun-mode", help="Configure LDAP backend, but do not run any binaries and exit early. Used only for the test environment. DO NOT USE", action="store_true") opts = parser.parse_args()[0] @@ -202,6 +202,11 @@ if opts.blank: elif opts.partitions_only: samdb_fill = FILL_DRS +setfileacl = True + +if opts.nosetfileacl: + setfileacl = False + session = system_session() provision(setup_dir, message, session, creds, smbconf=smbconf, targetdir=opts.targetdir, @@ -220,4 +225,4 @@ provision(setup_dir, message, backend_type=opts.ldap_backend_type, ldapadminpass=opts.ldapadminpass, ol_mmr_urls=opts.ol_mmr_urls, slapd_path=opts.slapd_path, setup_ds_path=opts.setup_ds_path, - nosync=opts.nosync,ldap_dryrun_mode=opts.ldap_dryrun_mode,setfileacl=opts.setfileacl) + nosync=opts.nosync,ldap_dryrun_mode=opts.ldap_dryrun_mode,setfileacl=setfileacl) |