summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-09-06 15:11:35 +0200
committerChristian Poessinger <christian@poessinger.com>2019-09-06 15:11:35 +0200
commitbb686343fc913413ff51edfeb63929759bee0fde (patch)
tree32f1e105fe8b09af49b7a96a253c67ed2058db69 /debian
parent10c19415f9c70e28bebacd683dad5da3da7d0817 (diff)
downloadvyatta-cfg-system-bb686343fc913413ff51edfeb63929759bee0fde.tar.gz
vyatta-cfg-system-bb686343fc913413ff51edfeb63929759bee0fde.zip
openvpn: T1630: add system user openvpn
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/vyatta-cfg-system.postinst.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in
index 965563c8..18e84055 100755
--- a/debian/vyatta-cfg-system.postinst.in
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -28,6 +28,11 @@ if ! grep -q '^tss' /etc/passwd; then
adduser --system --group --shell /usr/sbin/nologin --home /var/lib/tpm tss
fi
+# OpenVPN should get its own user
+if ! grep -q '^openvpn' /etc/passwd; then
+ sudo adduser --system --group --shell /usr/sbin/nologin --home /var/lib/openvpn openvpn
+fi
+
# Remove leftover udev files from earlier release
if [ -d /etc/udev/rules.d/ ]; then
rm -f /etc/udev/rules.d/*vyatta-net.rules