Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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.