summaryrefslogtreecommitdiffstats
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2014-04-02 15:42:29 +0200
committerStefan Metzmacher <metze@samba.org>2014-04-17 14:56:05 +0200
commitd2a7ce9d67fbd68b6a2ffb4a3501cc82870a7b1d (patch)
tree838486b35a3eb8e96f4b5e1d95edf9c182aa615c /source3
parent363f76c30504ca18cbce56f5b2ed5bcb2ce41412 (diff)
downloadsamba-d2a7ce9d67fbd68b6a2ffb4a3501cc82870a7b1d.tar.gz
samba-d2a7ce9d67fbd68b6a2ffb4a3501cc82870a7b1d.tar.xz
samba-d2a7ce9d67fbd68b6a2ffb4a3501cc82870a7b1d.zip
s3-utils: Do not disable the root check in smbpasswd.
We will run uid_wrapper as root so that this succeeds. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/smbpasswd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c
index 67780ff7cd..fc7b0710b6 100644
--- a/source3/utils/smbpasswd.c
+++ b/source3/utils/smbpasswd.c
@@ -97,12 +97,10 @@ static int process_options(int argc, char **argv, int local_flags)
while ((ch = getopt(argc, argv, "c:axdehminjr:sw:R:D:U:LW")) != EOF) {
switch(ch) {
case 'L':
-#if !defined(NSS_WRAPPER)
if (getuid() != 0) {
fprintf(stderr, "smbpasswd -L can only be used by root.\n");
exit(1);
}
-#endif
local_flags |= LOCAL_AM_ROOT;
break;
case 'c':