I have some ssh ldap users who connect to my server (centos7) for reset their password.
I would like they use rbash for execute
passwd command but I don't know how to do.
I can't add
/etc/passwd because they are LDAP user and they are not in this file.
I thought of 2 solutions, but not very safe:
- Launch rbash (or passwd command) in sshd_config with 'ForceCommand'
- Launch rbash in /etc/profile