CLI Session for RADIUS

Alister Winfield alister at
Thu Dec 28 10:50:19 CET 2017

It depends on what you are trying to achieveā€¦ (This is nothing to do with RADIUS but to give you a chance to learn the next thing is to learn about libnss).

Look at libnss for how id mappings happen this includes attributes traditionally found in the shadow and password files. Then look at sssd its likely to be easier to get it to work correctly libnss code stinks (Problems with shared libraries used by nss plugins have caused me much wasted time).


> On 19 Dec 2017, at 18:04, Sudarshan Soma <sudarshan12s at> wrote:
> Thanks Alan understood. It will be helpfule, if you can point or help on
> how do we go about giving custom login shell for RADIUS users only .
> Say for local (etc/passwd ) users, /bin/bash is the login shell.
> /bin/myshell is for RADIUS users. I tried to add PAM  module which adds a
> user  (/etc/passwd) when RADIUS login is attempted and pointed its shell to
> /bin/myshell , Is this correct way of doing it . I have to delete this user
> from /etc/passwd at the end of closing session.
> Regards,
> Ivan.
> On Mon, Dec 11, 2017 at 7:18 PM, Alan DeKok <aland at>
> wrote:
>> On Dec 10, 2017, at 11:30 PM, Sudarshan Soma <sudarshan12s at>
>> wrote:
>>> I would like to know the following with respect to PAM radius module.
>>> -> I would like to give my own login shell instead of /bin/bash .
>>  This has nothing to do with PAM or RADIUS.  See /etc/passwd.
>>  Alan DeKok.
>> -
>> List info/subscribe/unsubscribe? See
>> list/devel.html
> -
> List info/subscribe/unsubscribe? See

More information about the Freeradius-Devel mailing list