8 # On a fresh install, add the necessary user and group
9 adduser --quiet --system --no-create-home --home /etc/freeradius --group --disabled-password freerad
11 # Put user freerad in group shadow, so the daemon can auth locally
12 # Only do this on fresh install as the admin may not want freerad in shadow
13 # group if authenticating by another mechanism
14 adduser --quiet freerad shadow
16 if ! dpkg-statoverride --list | grep -qw /etc/freeradius$; then
17 dpkg-statoverride --add --update freerad freerad 2751 /etc/freeradius
20 if ! dpkg-statoverride --list | grep -qw /etc/freeradius/radiusd.conf$; then
21 dpkg-statoverride --add --update root freerad 0640 /etc/freeradius/radiusd.conf
24 # Relax permissions on local dictionary - allows radclient to run and should
25 # not contain secrets. At any rate, only do it on fresh install
26 if ! dpkg-statoverride --list | grep -qw /etc/freeradius/dictionary$; then
27 dpkg-statoverride --add --update root freerad 0644 /etc/freeradius/dictionary