summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-08-28 21:50:45 +0200
committerChristian Breunig <christian@breunig.cc>2023-08-28 21:50:45 +0200
commit7b52cfe98c5a2ff347a7bc947183768609d5a7c8 (patch)
treec05cf56e288dc9c00327a9e901d6d987e8d935fe
parent30390ac4b8e631bebad9082c75615cb147263c2e (diff)
downloadvyos-1x-7b52cfe98c5a2ff347a7bc947183768609d5a7c8.tar.gz
vyos-1x-7b52cfe98c5a2ff347a7bc947183768609d5a7c8.zip
Debian: T5521: use --no-create-home for TACACS users
-rw-r--r--debian/vyos-1x.postinst4
1 files changed, 1 insertions, 3 deletions
diff --git a/debian/vyos-1x.postinst b/debian/vyos-1x.postinst
index f262cbfa2..5b5eaf015 100644
--- a/debian/vyos-1x.postinst
+++ b/debian/vyos-1x.postinst
@@ -59,10 +59,8 @@ if ! grep -q '^tacacs' /etc/passwd; then
vyos_group=vyattaop
while [ $level -lt 16 ]; do
adduser --quiet --system --firstuid 900 --disabled-login --ingroup users \
- --home /home/tacacs${level} --gecos "TACACS+ mapped user at privilege level ${level}" \
+ --no-create-home --gecos "TACACS+ mapped user at privilege level ${level}" \
--shell /bin/vbash tacacs${level}
- # fix home permission - onl required b/c of system user
- chmod 700 /home/tacacs${level}
adduser --quiet tacacs${level} frrvty
adduser --quiet tacacs${level} adm
adduser --quiet tacacs${level} dip