I have two debian servers connected. I set FreeRADIUS on a Debian Server ( And I'd like the another Debian Server ( can login locally using the users listed on RADIUS Server. I use libpam-radius-auth. But when I try to login locally using the RADIUS user, It keeps fail and the log says "pam_radius_auth : DEBUG : getservbyname(radius,udp) returned -1217119556".

Anyone can tell me how to fix this problem?

OS : Debian 9.6

Here are my configs :


    /etc/freeradius/3.0/users (at the last line I add : users2 Cleartext-Password := "user") /etc/freeradius/3.0/clients.conf (at the last line) client { ipaddr = nastype = other secret = admin123 }

    1. Another Debian Server that use libpam-radius-auth

      /etc/pam_radius_auth.conf i add :

      server[:port] SharedSecret Timeout(s) admin123 7

    /etc/pam.d/common-auth i add on the last line :

    auth sufficient pam_radius_auth.so

    I also create homedirectory and login shell for user2 with command:

    adduser --disabled-password user2


1 Answer 1


Same problem here, but mine was resolved when I added the home directory and login shell with adduser --disabled-password :v

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .