<div class="gmail_quote">On Mon, Jul 25, 2011 at 2:11 PM, Frank Van Damme <span dir="ltr"><<a href="mailto:frank.vandamme@gmail.com">frank.vandamme@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I'd like to change a user's shell based on group membership. The group<br>
membership is no problem - that's what pam_listfile is for. Changing<br>
the shell, however, seems non-obvious. I've looked at the source code<br>
of pam_unix and it provides the path to the users login shell<br>
according to /etc/passwd, so it should be possible for a pam module to<br>
set the shell to an arbitrary value, right?<br></blockquote><br></div><br>No because it's the ssh daemon or the login process that sets the shell.<br>