smbpasswd ?

Paul Reilly pareilly at tcd.ie
Thu Jan 24 01:34:02 GMT 2002


> For reasons of extreme frustration (been bitten by this one...)
> smbpasswd (in non-root mode) takes the command line argument as the new
> password...
>

% smbpasswd opensesame
Old Password: ****
Password changed for user paulr
%

I see what you mean!! 'opensesame' is now my password! This is rather
unintuitive, and doesn't sound like the best syntax for a command to me!
I've actually got it work using the syntax 'smbpasswd -r localhost -U $user'
in my script, which does the job.

Maybe the command syntax could be cleaned up a bit?

Paul





More information about the samba mailing list