diff options
| author | Andreas Schneider <asn@samba.org> | 2014-04-02 15:42:29 +0200 |
|---|---|---|
| committer | Stefan Metzmacher <metze@samba.org> | 2014-04-17 14:56:05 +0200 |
| commit | d2a7ce9d67fbd68b6a2ffb4a3501cc82870a7b1d (patch) | |
| tree | 838486b35a3eb8e96f4b5e1d95edf9c182aa615c /source3 | |
| parent | 363f76c30504ca18cbce56f5b2ed5bcb2ce41412 (diff) | |
| download | samba-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.c | 2 |
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': |
