Re: change session's login shell
Jason Clifford <[email protected]>
| Newsgroups | gmane.linux.pam |
|---|---|
| Message-ID | <CAOMCVZU3OCHmNxS0iMAJ4-ixwJ6vdpdmaGEvyUh0O_u9Ko7_xA@mail.gmail.com> |
On Mon, Jul 25, 2011 at 2:11 PM, Frank Van Damme <[email protected]>wrote: > I'd like to change a user's shell based on group membership. The group > membership is no problem - that's what pam_listfile is for. Changing > the shell, however, seems non-obvious. I've looked at the source code > of pam_unix and it provides the path to the users login shell > according to /etc/passwd, so it should be possible for a pam module to > set the shell to an arbitrary value, right? > No because it's the ssh daemon or the login process that sets the shell. _______________________________________________ Pam-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/pam-list