[Samba] Samba 4 and password policy pwsetting error

Lukasz Zalewski lukas at dcs.qmul.ac.uk
Thu Aug 26 11:06:13 MDT 2010

On 08/26/2010 05:51 PM, Glenn T. Arnold wrote:
> Hello,
> When I tried to change the password policy on a samba 4 domain controller I get the following error.
> root at server01:/usr/local/samba/lib/python2.6/site-packages/samba/netcmd# ./pwsettings.py --complexity=off
> Traceback (most recent call last):
> File "./pwsettings.py", line 25, in<module>
> import samba.getopt as options
> ImportError: No module named samba.getopt
> root at lcsdc01:/usr/local/samba/lib/python2.6/site-packages/samba/netcmd#
> What am I doing wrong when running this command?
> Thanks
> -Glenn

run it as follows:
/usr/local/samba/bin/net pwsettings <your options>



More information about the samba mailing list