Prob with smbpasswd script

Christophe_Gillard at Christophe_Gillard at
Mon Jan 17 13:24:16 GMT 2005


Since the release 3.0.9, i have a problem with my script to add new users:

with 3.0.4:   smbpasswd -a -s [user] [password] works fine

with 3.0.9 and 3.0.10 : the same command didn't work even with the -L

smbpasswd -L -a -s TEST PASS
When run by root:
    smbpasswd [options] [username]
    smbpasswd [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
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 PASSWORD          ldap admin password
  -x                   delete user
  -R ORDER             name resolve order

Best Regards,

Gillard Christophe

More information about the samba-technical mailing list