summaryrefslogtreecommitdiff
path: root/debian/libnss-mapuser.postinst
diff options
context:
space:
mode:
authorDave Olson <olson@cumulusnetworks.com>2018-04-06 15:06:27 -0700
committerDave Olson <olson@cumulusnetworks.com>2018-04-10 12:33:12 -0700
commitbf538dfedd8ae77ff3a8cf75e7776983c0afd94a (patch)
treec67c0c6116a0413b31905e43d238df982eab35ef /debian/libnss-mapuser.postinst
parent2bb0d52ef65790f848f462da61af708a9a0940d0 (diff)
downloadlibnss-mapuser-bf538dfedd8ae77ff3a8cf75e7776983c0afd94a.tar.gz
libnss-mapuser-bf538dfedd8ae77ff3a8cf75e7776983c0afd94a.zip
cleanup group mapname in nsswitch on remove; add priv user to sudo group
Needed to add sed code to remove mapname from nsswitch.conf group search line, similar to passwd line. Somehow forgot that when I added the code to add it in postinst I also somehow forgot to checkin the adduser line to add the radius_priv_user to the sudo group, so fixed that too.
Diffstat (limited to 'debian/libnss-mapuser.postinst')
-rw-r--r--debian/libnss-mapuser.postinst1
1 files changed, 1 insertions, 0 deletions
diff --git a/debian/libnss-mapuser.postinst b/debian/libnss-mapuser.postinst
index ee6a70d..13bf0d0 100644
--- a/debian/libnss-mapuser.postinst
+++ b/debian/libnss-mapuser.postinst
@@ -32,6 +32,7 @@ case "$1" in
adduser --quiet radius_user netshow
# privileged radius logins can run net config commands, as well as show
adduser --quiet radius_priv_user netedit
+ adduser --quiet radius_priv_user sudo
exit 0
)
;;