Sample Header Ad - 728x90

SAMBA password expiration

1 vote
1 answer
495 views
- RHEL-8.10 to be specific - samba-4.19 - security = user in /etc/samba/smb.conf [global] - passdb backend = tdbsam in /etc/samba/smb.conf [global] smbpasswd -a is done so there is an independent password for samba connections. When a Linux user's password in /etc/passwd is **expired**, is there a way to also make the samba password expired for the given user? At the very least dissallow the samba connection for the given user when their Linux account password is expired? scenario: the /etc/passwd password is set to expire in 90 days, per PASS_MAX_DAYS in /etc/login.defs and as shown by passwd -S . When a user has gone more than 90 days and the time to change their Linux password has come and gone and they are effectively locked out of Linux, I am observing (with a test account) that samba access to shared folders is still available because their windowsNT password is on a different expiration cycle, and they can still access samba shares of the Linux server. I want /etc/passwd expiration to also expire the samba password on the linux server if possible. Ideally make PASS_MAX_DAYS also apply to the samba password and force the user to update, is this possible? This is basic stuff today for the /etc/passwd password, but it seems like samba fell through the cracks on this.
Asked by ron (8647 rep)
Aug 6, 2024, 05:24 PM
Last activity: Aug 7, 2024, 09:29 AM