summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-03-29 11:00:33 +0200
committerGitHub <noreply@github.com>2023-03-29 11:00:33 +0200
commitd07ca83b23c05b1ec043eca420658fa310b9e662 (patch)
tree2f97f96a4b3969b4bc5fe5a67831d6e6783fcb4f
parentb1d3193d2bb1ae8cd214a0dd6eabd1d732446407 (diff)
parent116b9395523ea4285a593afad2b746a63e6c1b74 (diff)
downloadvyos-1x-d07ca83b23c05b1ec043eca420658fa310b9e662.tar.gz
vyos-1x-d07ca83b23c05b1ec043eca420658fa310b9e662.zip
Merge pull request #1918 from sever-sever/T5110
T5110: Fix op-mode FRR vtysh_pam account validation
-rw-r--r--debian/vyos-1x.postinst7
1 files changed, 7 insertions, 0 deletions
diff --git a/debian/vyos-1x.postinst b/debian/vyos-1x.postinst
index f6693c799..ddc189508 100644
--- a/debian/vyos-1x.postinst
+++ b/debian/vyos-1x.postinst
@@ -115,5 +115,12 @@ done
sed -i '/^\/var\/log\/messages$/d' /etc/logrotate.d/rsyslog
sed -i '/^\/var\/log\/auth.log$/d' /etc/logrotate.d/rsyslog
+# Fix FRR pam.d "vtysh_pam" vtysh_pam: Failed in account validation T5110
+if test -f /etc/pam.d/frr; then
+ if grep -q 'pam_rootok.so' /etc/pam.d/frr; then
+ sed -i -re 's/rootok/permit/' /etc/pam.d/frr
+ fi
+fi
+
# Generate API GraphQL schema
/usr/libexec/vyos/services/api/graphql/generate/generate_schema.py