automating smbpasswd

S Lim S.Lim at Psych.unimelb.edu.au
Thu Jul 22 09:29:59 GMT 1999


Hi,

I have about 1100 users on my system. I am setting up samba and I would
like to use encrypted password. I would like to automate the creation of
smbpasswd file. I have generated the smbpasswd with the mksmbpasswd.sh
script and now I have to add the passwords. I can not possibly type
passwords for 1100 users twice so I would like to automate them. I can
store users password file (temporarily) in normal text. I am writing a
script to take this password (fork smbpasswd and take control of its STDIN
from parent). It seems that smbpasswd ignores any input from the parent. 

My questions are :
- What is smbpasswd input?
- Is there any script which does what I want to do?

Thank you.

Suryani.


--
Suryani Lim 
Department of Psychology          
University of Melbourne           
Parkville, Victoria 3052
Australia

Email: s.lim at psych.unimelb.edu.au
Phone: +61 3 9344 4449
Fax:   +61 3 9347 6618


More information about the samba mailing list