git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c779dfe
)
selftest: net command needs to think it is root in clustered case
author
Martin Schwenke
<martin@meltin.net>
Thu, 16 Jan 2020 22:42:19 +0000
(09:42 +1100)
committer
Martin Schwenke
<martins@samba.org>
Wed, 19 Feb 2020 09:38:40 +0000
(09:38 +0000)
So just run it "as root" all the time.
Something similar is already done for other things in
Samba3::provision(), such as running smbpasswd in
Samba3::createuser().
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Volker Lendecke <vl@samba.org>
selftest/target/Samba3.pm
patch
|
blob
|
history
diff --git
a/selftest/target/Samba3.pm
b/selftest/target/Samba3.pm
index bd714c4e4aca44ca055b017b24503730db9809b1..ada3e58d9ab4384e48a7920e9b8a4e38fb7abe96 100755
(executable)
--- a/
selftest/target/Samba3.pm
+++ b/
selftest/target/Samba3.pm
@@
-2405,6
+2405,7
@@
sub provision($$)
my $net = Samba::bindir_path($self, "net");
my $cmd = "";
+ $cmd .= "UID_WRAPPER_ROOT=1 ";
$cmd .= "SMB_CONF_PATH=\"$conffile\" ";
$cmd .= "$net setlocalsid $samsid";