System information
76 Deploying Samba on IBM Eserver BladeCenter
Figure 4-16 User changing password
4.3 Encrypted password file
Since password encryption is required for Windows 2000, Windows NT 4.0 Service Pack 3 or
later, Windows 95, and Windows 98, you need to enable encrypted password support and
create the encrypted password file before starting the Samba server. The encrypted
password file can be created with the mksmbpasswd utility. It is recommended to first create
the user accounts on Linux and then create the Samba password file with the command:
cat /etc/passwd | /usr/bin/mksmbpasswd.sh > /etc/samba/smbpasswd
This creates the Samba password file from the Linux password file.
Now a password must be set for each user ID that will be a connection from a SMB client.
The password can be changed or set by executing the command:
/usr/bin/smbpasswd -U <username>
You will see prompts similar to those shown in Example 4-8 on page 77.
Note: Use the same filename specified in the smp passwd file parameter in smb.conf.
By default, the passwords for the Samba users are undefined. Before any connection
is made, a password must be set for each user ID.