Hi everyone,

Does anyone know how to convert /etc/shadow or /etc/passwd to
/etc/samba/smbpasswd?

I haven't been able to google anything that works.

 

Neither of the following work:

 cat /etc/passwd|mksmbpasswd.sh |cat>/etc/samba/smbpasswd

 cat /etc/shadow|mksmbpasswd.sh|cat>/etc/samba/smbpasswd

 

mkdsmbpasswd creates the username accounts but not the passwords.

 

Thanks.

Reply via email to