Unable to start freerad with sudo

Anatoliy Kushner cphlpd at gmail.com
Thu Jul 20 09:47:22 UTC 2023


this error you got, is because user www-data do not have permissions to run fr with user freerad



\ AK

> On 20 Jul 2023, at 17:42, Stanislav Lorenc <stanislav.lorenc at cernovice.net> wrote:
> 
> 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
>> 
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


More information about the Freeradius-Users mailing list