addtosmbpass1
Add entry for an existing account to a samba password file.
Usage
addtosmbpass name
[name ...]
Overview
addtosmbpass is a utility for adding entries, in a proper format, to a file used by Samba when validating passwords for clients (most likely /usr/local/samba/lib/smbpasswd but this default can be changed in a compile time). An old (possibly empty as in /dev/null ) Samba password file is expected on stdin and a new file, with skeleton entries for arguments added, is printed on stdout. A file /etc/passwd is scanned for a required information. If an entry for a name is not present then account data are searched in NIS data bases - if possible. If an entry for name already exists in stdin input or it account information cannot be found then this request is quietly skipped.
Files
/usr/local/samba/lib/smbpasswd, /etc/passwd