Smbmount password interfaces

Urban Widmark urban at
Mon Nov 11 19:14:01 GMT 2002

On Mon, 11 Nov 2002, W. Michael Petullo wrote:

> Could you implement a similar option in smbmount?  When the current
> version of smbmount prompts for a password, it tries to read it from
> /dev/tty.  Allowing a user to tell smbmount to read its password from
> stdin would make smbmount more flexible in pipelines.

You should be able to set PASSWD_FD to a file descriptor to read the
password from. (see source/client/smbmount.c:get_password_file)

Not that I have a problem with adding 'passwordfd=0' if that makes it any 
easier for you.


More information about the samba-technical mailing list