diff options
author | Jernej Jakob <jernej.jakob@gmail.com> | 2020-06-11 08:10:35 +0200 |
---|---|---|
committer | Jernej Jakob <jernej.jakob@gmail.com> | 2020-06-11 22:10:47 +0200 |
commit | 3bc07c4fc8bdc865a767aa927bfe9487710ee4d4 (patch) | |
tree | 2abed369c85bb2de140c5e65317ae390658e3fc9 /debian/vyos-1x.postinst | |
parent | 96ed330e9691f9db79c837505802ae5055f86348 (diff) | |
download | vyos-1x-3bc07c4fc8bdc865a767aa927bfe9487710ee4d4.tar.gz vyos-1x-3bc07c4fc8bdc865a767aa927bfe9487710ee4d4.zip |
dhcp(v6)-server: T2583: run as 'dhcpd' user
Add a 'dhcpd' system user that is a member of hostsd group and can
connect to vyos-hostsd.
Run dhcpd as this user.
Diffstat (limited to 'debian/vyos-1x.postinst')
-rw-r--r-- | debian/vyos-1x.postinst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/debian/vyos-1x.postinst b/debian/vyos-1x.postinst index 672f90dff..dc129cb54 100644 --- a/debian/vyos-1x.postinst +++ b/debian/vyos-1x.postinst @@ -24,3 +24,9 @@ fi if ! grep -q '^hostsd' /etc/group; then addgroup --quiet --system hostsd fi + +# add dhcpd user for dhcp-server +if ! grep -q '^dhcpd' /etc/passwd; then + adduser --quiet --system --disabled-login --no-create-home --home /run/dhcp-server dhcpd + adduser --quiet dhcpd hostsd +fi |