[Samba] smbldap-usermod over ssh

Misty Stanley-Jones misty at borkholder.com
Wed Nov 24 14:34:05 GMT 2004

Hi all,

I'm writing a script, and one thing it does is the following:

ssh someuser at somehost /usr/local/sbin/smbldap-usermod -a -P some.samba.user

If I left off the -P all works fine.  With the -P it does not prompt me for 
the password on my screen, but it seems to have done it on the host I am 
ssh'ing to.  I straced the command on that host and I am stuck at a read() 
call.  However, I can't see the password prompt or type in the password 

What I would really like to do anyway is pass the password as a parameter, 
since I will be getting the password from input to the script.  But I don't 
see it as one of the valid options for smbldap-usermod.  Is anyone doing a 
similar thing and if so, can you offer me wisdom?


More information about the samba mailing list