mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
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>
This commit is contained in:
parent
363f76c305
commit
d2a7ce9d67
@ -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':
|
||||
|
Loading…
x
Reference in New Issue
Block a user