summaryrefslogtreecommitdiff
path: root/debian/vyos-1x.postinst
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-11-21 10:08:20 +0100
committerGitHub <noreply@github.com>2023-11-21 10:08:20 +0100
commitbdf0a3b288f93f2e8257106de968ddaa3fca0e21 (patch)
treeb44029f81f1a47a86b475a00d0b22587addfd2db /debian/vyos-1x.postinst
parent471e26233e2e1c7b4ad20aff673a18ac5d745296 (diff)
parentd7457268fcaa5626e512eb00a9aab36f4a617f28 (diff)
downloadvyos-1x-bdf0a3b288f93f2e8257106de968ddaa3fca0e21.tar.gz
vyos-1x-bdf0a3b288f93f2e8257106de968ddaa3fca0e21.zip
Merge pull request #2513 from zdc/T5577-equuleus
PAM: T5577: Optimized RADIUS PAM config (backport from circinus)
Diffstat (limited to 'debian/vyos-1x.postinst')
-rw-r--r--debian/vyos-1x.postinst9
1 files changed, 9 insertions, 0 deletions
diff --git a/debian/vyos-1x.postinst b/debian/vyos-1x.postinst
index 81ba74b9b..7b865fb11 100644
--- a/debian/vyos-1x.postinst
+++ b/debian/vyos-1x.postinst
@@ -45,3 +45,12 @@ done
# Enable Cloud-init pre-configuration service
systemctl enable vyos-config-cloud-init.service
+
+# We need to have a group for RADIUS service users to use it inside PAM rules
+if ! grep -q '^radius' /etc/group; then
+ addgroup --quiet radius
+fi
+
+# And add RADIUS users to this group
+usermod -aG radius radius_user
+usermod -aG radius radius_priv_user