diff options
author | Christian Breunig <christian@breunig.cc> | 2023-03-29 11:00:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-29 11:00:33 +0200 |
commit | d07ca83b23c05b1ec043eca420658fa310b9e662 (patch) | |
tree | 2f97f96a4b3969b4bc5fe5a67831d6e6783fcb4f /debian | |
parent | b1d3193d2bb1ae8cd214a0dd6eabd1d732446407 (diff) | |
parent | 116b9395523ea4285a593afad2b746a63e6c1b74 (diff) | |
download | vyos-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
Diffstat (limited to 'debian')
-rw-r--r-- | debian/vyos-1x.postinst | 7 |
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 |