Discussion:
[Samba] smbclient says NT_STATUS_PASSWORD_MUST_CHANGE - how to change password?
Bradley W. Langhorst
2003-12-01 18:51:37 UTC
Permalink
After a thorough google and marc search i'm shocked to find
this problem unmentioned...

How does one go about changing the windows password from a unix machine
with no physical access to the windows machine sharing things?

samba 2.2.3a (debian woody)
windows2000 server

thanks!

brad

note: here's my latest attempt. I tried this with and without a -c
parameter

smbclient //coco2/c$ -c "net user bwlang *" -U bwlang
added interface ip=192.168.0.2 bcast=192.168.0.255 nmask=255.255.255.0
added interface ip=192.168.0.3 bcast=192.168.0.255 nmask=255.255.255.0
Got a positive name query response from 192.168.0.95 ( 192.168.0.95 )
Password:
session setup failed: NT_STATUS_PASSWORD_MUST_CHANGE
--
Bradley W. Langhorst <***@langhorst.com>
John H Terpstra
2003-12-01 18:51:37 UTC
Permalink
Post by Bradley W. Langhorst
After a thorough google and marc search i'm shocked to find
this problem unmentioned...
How does one go about changing the windows password from a unix machine
with no physical access to the windows machine sharing things?
SWAT provides the password change facility you are looking for. If you
prefer a command line tool, smbpasswd has the same functionality - check
the -U and -r options. The smbpasswd man page documents the password
change options.

If you need further help email me.

Cheers,
John T.
Post by Bradley W. Langhorst
samba 2.2.3a (debian woody)
windows2000 server
thanks!
brad
note: here's my latest attempt. I tried this with and without a -c
parameter
smbclient //coco2/c$ -c "net user bwlang *" -U bwlang
added interface ip=192.168.0.2 bcast=192.168.0.255 nmask=255.255.255.0
added interface ip=192.168.0.3 bcast=192.168.0.255 nmask=255.255.255.0
Got a positive name query response from 192.168.0.95 ( 192.168.0.95 )
session setup failed: NT_STATUS_PASSWORD_MUST_CHANGE
--
John H Terpstra
Email: ***@samba.org
Bradley W. Langhorst
2003-12-01 18:51:38 UTC
Permalink
Post by John H Terpstra
Post by Bradley W. Langhorst
After a thorough google and marc search i'm shocked to find
this problem unmentioned...
How does one go about changing the windows password from a unix machine
with no physical access to the windows machine sharing things?
SWAT provides the password change facility you are looking for.
huh - swat?
i think swat is for configuring smb.conf, etc from a web broswer.
You can change the unix and samba passwords from swat but i don't know
of any way to change a remote windows password with swat (unless winbind
is in play)
Post by John H Terpstra
If you
prefer a command line tool, smbpasswd has the same functionality - check
the -U and -r options. The smbpasswd man page documents the password
change options.
this is what i'm looking for - i expected the remote password changing
tools to part of smbclient but i guess it is just as logical for it to
be a part of smbpasswd.

smbpasswd -r may work for me...

thanks

brad
John H Terpstra
2003-12-01 18:51:38 UTC
Permalink
Post by Bradley W. Langhorst
Post by John H Terpstra
Post by Bradley W. Langhorst
After a thorough google and marc search i'm shocked to find
this problem unmentioned...
How does one go about changing the windows password from a unix machine
with no physical access to the windows machine sharing things?
SWAT provides the password change facility you are looking for.
huh - swat?
i think swat is for configuring smb.conf, etc from a web broswer.
You can change the unix and samba passwords from swat but i don't know
of any way to change a remote windows password with swat (unless winbind
is in play)
Check the lower password change boxes in the SWAT password page. IT is
specifically to allow user passwords on remote machines to be changed.

- John T.
Post by Bradley W. Langhorst
Post by John H Terpstra
If you
prefer a command line tool, smbpasswd has the same functionality - check
the -U and -r options. The smbpasswd man page documents the password
change options.
this is what i'm looking for - i expected the remote password changing
tools to part of smbclient but i guess it is just as logical for it to
be a part of smbpasswd.
smbpasswd -r may work for me...
thanks
brad
--
John H Terpstra
Email: ***@samba.org
Loading...