11/20/2008

Sync Linux and Samba password

The pam_smbpass PAM module can be used to sync users’ Samba passwords with their system passwords. If a user invokes the passwd command, the password he uses to log in to the system as well as the password he must provide to connect to a Samba share are changed.

To enable this feature, add the following line to /etc/pam.d/system-auth below the pam_cracklib.so invocation:

password required /lib/security/pam_smbpass.so nullok use_authtok try_first_pass

system-auth - Common configuration file for PAMified services written by authconfig(8). The purpose of this configuration file is to provide common configuration file for all applications and service daemons calling PAM library.

沒有留言: