Discussion:
[Samba] smbpasswd with password on the command line
(too old to reply)
Pedro Silva
2004-09-26 20:10:07 UTC
Permalink
I've upgraded my samba server to 3.0.6 and without any warning the
command smbpasswd no longer accepts passing the user password on the
command line!

This was a very bad thing for me since the scripts I use to generate all
my users account stopped working :-(

Anyone had the same problem? Any suggestions before rewriting everything....

Pedro Silva
--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba
Hugo Brites
2004-09-26 22:00:15 UTC
Permalink
Post by Pedro Silva
I've upgraded my samba server to 3.0.6 and without any warning the
command smbpasswd no longer accepts passing the user password on the
command line!
This was a very bad thing for me since the scripts I use to generate all
my users account stopped working :-(
Anyone had the same problem? Any suggestions before rewriting
everything....
Pedro Silva
Hi

Just use
(echo <password>;echo <password>)| smbpasswd -s -a <username>

seen it somewhere
hope it help's


Hugo
--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba
Jeremy Allison
2004-09-26 23:50:08 UTC
Permalink
Post by Pedro Silva
I've upgraded my samba server to 3.0.6 and without any warning the
command smbpasswd no longer accepts passing the user password on the
command line!
This was a very bad thing for me since the scripts I use to generate all
my users account stopped working :-(
Anyone had the same problem? Any suggestions before rewriting everything....
Sorry, that was intentional. Allowing password on a command
line is a horrible security risk and it worked by accident,
until I fixed it.

The correct (supported) way is to use -s (read from stdin) and
to pass the password via stdin.

Jeremy.
--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba
Christian Merrill
2004-09-27 13:00:21 UTC
Permalink
Post by Pedro Silva
I've upgraded my samba server to 3.0.6 and without any warning the
command smbpasswd no longer accepts passing the user password on the
command line!
This was a very bad thing for me since the scripts I use to generate
all my users account stopped working :-(
Anyone had the same problem? Any suggestions before rewriting
everything....
Pedro Silva
We have had a few customers complain of a similar problem and I posted
the question here a while ago. If I remember correctly the answer
(simplified) is that this was an intentional coding change put in for
security purposes.

Christian
--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba
Continue reading on narkive:
Search results for '[Samba] smbpasswd with password on the command line' (Questions and Answers)
4
replies
How to share folders between fedora and vista?
started 2009-04-26 08:42:57 UTC
computer networking
Loading...