Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Can you use LDAP and PAM to implement a restricted shell and control those users via groups on the LDAP DC?

I would like to do this for several Red Hat, Solaris and Ubuntu servers?

Thanks!

share|improve this question

1 Answer 1

up vote 0 down vote accepted

The very short answer is yes. However, your question is rather broad and answering it in full is outside the scope of this site.

The general outline is to use nss-ldap to pull posixGroups via LDAP and have sshd use those groups as the condition for a Match block with a ForcedCommand directive.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.