diff options
author | Herb Lewis <herb@samba.org> | 2002-04-03 16:44:15 +0000 |
---|---|---|
committer | Herb Lewis <herb@samba.org> | 2002-04-03 16:44:15 +0000 |
commit | 020d6fa2f780099d662de1a456838ec0ac4d3ca7 (patch) | |
tree | 35fb4505adc88fd24429c20273d90b323f41eff9 /source | |
parent | e84cc7ea84042b2460baef32a39448d620612bbc (diff) | |
download | samba-020d6fa2f780099d662de1a456838ec0ac4d3ca7.tar.gz samba-020d6fa2f780099d662de1a456838ec0ac4d3ca7.tar.xz samba-020d6fa2f780099d662de1a456838ec0ac4d3ca7.zip |
reorder useage message a little. -L is not a root-only or local mode option.
Diffstat (limited to 'source')
-rw-r--r-- | source/utils/smbpasswd.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/source/utils/smbpasswd.c b/source/utils/smbpasswd.c index cd046dfb1bf..a96fad0cdb6 100644 --- a/source/utils/smbpasswd.c +++ b/source/utils/smbpasswd.c @@ -56,25 +56,26 @@ static void usage(void) printf(" smbpasswd [options] [password]\n\n"); printf("options:\n"); - printf(" -c smb.conf file Use the given path to the smb.conf file\n"); + printf(" -L local mode (must be first option)\n"); + printf(" -h print this usage message\n"); printf(" -s use stdin for password prompt\n"); + printf(" -c smb.conf file Use the given path to the smb.conf file\n"); printf(" -D LEVEL debug level\n"); - printf(" -U USER remote username\n"); printf(" -r MACHINE remote machine\n"); + printf(" -U USER remote username\n"); printf("extra options when run by root or in local mode:\n"); - printf(" -L local mode (must be first option)\n"); - printf(" -R ORDER name resolve order\n"); printf(" -a add user\n"); - printf(" -x delete user\n"); printf(" -d disable user\n"); printf(" -e enable user\n"); - printf(" -n set no password\n"); - printf(" -m machine trust account\n"); printf(" -i interdomain trust account\n"); + printf(" -m machine trust account\n"); + printf(" -n set no password\n"); #ifdef WITH_LDAP_SAM printf(" -w ldap admin password\n"); #endif + printf(" -x delete user\n"); + printf(" -R ORDER name resolve order\n"); exit(1); } |