OS Manuals

/usr/bin/smbpasswd

Tools for Samba servers and clients

From samba-common-tools 4.25.1-r1 (os), captured 2026-11-05 by running smbpasswd --help (exit 1). permalink

/usr/bin/smbpasswd: invalid option -- '-'
When run by root:
    smbpasswd [options] [username]
otherwise:
    smbpasswd [options]

options:
  -L                   local mode (must be first option)
  -h                   print this usage message
  -s                   use stdin for password prompt
  -c smb.conf file     Use the given path to the smb.conf file
  -D LEVEL             debug level
  -r MACHINE           remote machine
  -U USER              remote username (e.g. SAM/user)
extra options when run by root or in local mode:
  -a                   add user
  -d                   disable user
  -e                   enable user
  -i                   interdomain trust account
  -m                   machine trust account
  -n                   set no password
  -W                   use stdin ldap admin password
  -w PASSWORD          ldap admin password
  -x                   delete user
  -R ORDER             name resolve order
Options (17)
OptionDescriptionSource
-Llocal mode (must be first option)help
-hprint this usage messagehelp
-suse stdin for password prompthelp
-c smb.confUse the given path to the smb.conf filehelp
-D LEVELdebug levelhelp
-r MACHINEremote machinehelp
-U USERremote username (e.g. SAM/user)help
-aadd userhelp
-ddisable userhelp
-eenable userhelp
-iinterdomain trust accounthelp
-mmachine trust accounthelp
-nset no passwordhelp
-Wuse stdin ldap admin passwordhelp
-w PASSWORDldap admin passwordhelp
-xdelete userhelp
-R ORDERname resolve orderhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.