Unable to start freerad with sudo

Stanislav Lorenc stanislav.lorenc at cernovice.net
Thu Jul 20 08:42:16 UTC 2023


>From radiusd.conf

user = freerad
group = freerad

> Hi Stanislav,
>
> On Thu, Jul 20, 2023 at 07:57:55AM +0200, Stanislav Lorenc wrote:
>> sudo -u www-data /usr/sbin/freeradius -f
>> radiusd: ERROR - Cannot initialize supplementary group list for user
>> freerad: Operation not permitted
>>
>> sudo -u www-data /usr/sbin/service freeradius start
>> Failed to start freeradius.service: Access denied
>> See system logs and 'systemctl status freeradius.service' for details.
> What are the details saying?
>
> You could try "su www-data" or "su www-data -" and then start the freeradius
> server to see which of the two steps fail.
>
> BTW: Using www-data as freeradius user looks very strange to me.
>
> Greetings
>    Hermann
>


More information about the Freeradius-Users mailing list