From 21cc6ee54ca59b8df2a0dffe7b05058f8d455c4c Mon Sep 17 00:00:00 2001 From: reachableceo Date: Mon, 27 Jul 2026 10:35:17 -0500 Subject: [PATCH] fix(config): newline-terminate all deployed config files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 29 files under ProjectCode/ConfigFiles lacked a trailing newline. They deploy via `cat file > target`, and several targets are subsequently appended to (notably /etc/ssh/sshd_config, which configure_ssh_2fa appends `AuthenticationMethods publickey,keyboard-interactive` to). Without a trailing newline the append fused onto the last line, producing `LoginGraceTime 60AuthenticationMethods ...`, which sshd -t rejected as an invalid time value and aborted provisioning under errexit. This is the same defect class that already broke the managed authorized_keys files. Add the trailing newline to every config file that was missing one so the cat-then-append pattern is always safe. 🤖 Generated with [Crush](https://github.com/charmassociates/crush) Assisted-by: GLM-5 via Crush --- ProjectCode/ConfigFiles/AuditD/auditd.conf | 2 +- ProjectCode/ConfigFiles/BANNERS/issue | 2 +- ProjectCode/ConfigFiles/BANNERS/issue.net | 2 +- ProjectCode/ConfigFiles/BANNERS/motd | 2 +- ProjectCode/ConfigFiles/Cockpit/disallowed-users | 2 +- ProjectCode/ConfigFiles/Logrotate/logrotate.conf | 2 +- ProjectCode/ConfigFiles/ModProbe/cramfs.conf | 2 +- ProjectCode/ConfigFiles/ModProbe/dccp.conf | 2 +- ProjectCode/ConfigFiles/ModProbe/freevxfs.conf | 2 +- ProjectCode/ConfigFiles/ModProbe/hfs.conf | 2 +- ProjectCode/ConfigFiles/ModProbe/hfsplus.conf | 2 +- ProjectCode/ConfigFiles/ModProbe/jffs2.conf | 2 +- ProjectCode/ConfigFiles/ModProbe/rds.conf | 2 +- ProjectCode/ConfigFiles/ModProbe/sctp.conf | 2 +- ProjectCode/ConfigFiles/ModProbe/squashfs.conf | 2 +- ProjectCode/ConfigFiles/ModProbe/tipc.conf | 2 +- ProjectCode/ConfigFiles/ModProbe/udf.conf | 2 +- ProjectCode/ConfigFiles/ModProbe/usb_storage.conf | 2 +- ProjectCode/ConfigFiles/NTP/ntp.conf | 2 +- ProjectCode/ConfigFiles/NetworkDiscovery/lldpd | 2 +- ProjectCode/ConfigFiles/SMTP/postfix_generic | 2 +- ProjectCode/ConfigFiles/SNMP/snmpd-physicalhost.conf | 2 +- ProjectCode/ConfigFiles/SNMP/snmpd-rpi.conf | 2 +- ProjectCode/ConfigFiles/SNMP/snmpd.conf | 2 +- ProjectCode/ConfigFiles/SSH/Configs/ssh-audit-hardening.conf | 2 +- ProjectCode/ConfigFiles/SSH/Configs/tsys-sshd-config | 2 +- ProjectCode/ConfigFiles/Syslog/rsyslog.conf | 2 +- ProjectCode/ConfigFiles/Systemd/journald.conf | 2 +- ProjectCode/ConfigFiles/ZSH/tsys-zshrc | 2 +- 29 files changed, 29 insertions(+), 29 deletions(-) diff --git a/ProjectCode/ConfigFiles/AuditD/auditd.conf b/ProjectCode/ConfigFiles/AuditD/auditd.conf index 3292aff..e1482e3 100644 --- a/ProjectCode/ConfigFiles/AuditD/auditd.conf +++ b/ProjectCode/ConfigFiles/AuditD/auditd.conf @@ -43,4 +43,4 @@ end_of_event_timeout = 2 ##krb5_key_file = /etc/audit/audit.key krb5_principal = auditd -##name = mydomain \ No newline at end of file +##name = mydomain diff --git a/ProjectCode/ConfigFiles/BANNERS/issue b/ProjectCode/ConfigFiles/BANNERS/issue index cace08b..42b3729 100644 --- a/ProjectCode/ConfigFiles/BANNERS/issue +++ b/ProjectCode/ConfigFiles/BANNERS/issue @@ -2,4 +2,4 @@ This system is the property of Known Element Enterprises LLC. Authorized uses only. All activity may be monitored and reported. -All activities subject to monitoring/recording/review in real time and/or at a later time. \ No newline at end of file +All activities subject to monitoring/recording/review in real time and/or at a later time. diff --git a/ProjectCode/ConfigFiles/BANNERS/issue.net b/ProjectCode/ConfigFiles/BANNERS/issue.net index cace08b..42b3729 100644 --- a/ProjectCode/ConfigFiles/BANNERS/issue.net +++ b/ProjectCode/ConfigFiles/BANNERS/issue.net @@ -2,4 +2,4 @@ This system is the property of Known Element Enterprises LLC. Authorized uses only. All activity may be monitored and reported. -All activities subject to monitoring/recording/review in real time and/or at a later time. \ No newline at end of file +All activities subject to monitoring/recording/review in real time and/or at a later time. diff --git a/ProjectCode/ConfigFiles/BANNERS/motd b/ProjectCode/ConfigFiles/BANNERS/motd index cace08b..42b3729 100644 --- a/ProjectCode/ConfigFiles/BANNERS/motd +++ b/ProjectCode/ConfigFiles/BANNERS/motd @@ -2,4 +2,4 @@ This system is the property of Known Element Enterprises LLC. Authorized uses only. All activity may be monitored and reported. -All activities subject to monitoring/recording/review in real time and/or at a later time. \ No newline at end of file +All activities subject to monitoring/recording/review in real time and/or at a later time. diff --git a/ProjectCode/ConfigFiles/Cockpit/disallowed-users b/ProjectCode/ConfigFiles/Cockpit/disallowed-users index 4afe878..7c07810 100644 --- a/ProjectCode/ConfigFiles/Cockpit/disallowed-users +++ b/ProjectCode/ConfigFiles/Cockpit/disallowed-users @@ -1,2 +1,2 @@ #/etc/cockpit/disallowed-users -# List of users which are not allowed to login to Cockpit \ No newline at end of file +# List of users which are not allowed to login to Cockpit diff --git a/ProjectCode/ConfigFiles/Logrotate/logrotate.conf b/ProjectCode/ConfigFiles/Logrotate/logrotate.conf index e571f2b..9f2f271 100644 --- a/ProjectCode/ConfigFiles/Logrotate/logrotate.conf +++ b/ProjectCode/ConfigFiles/Logrotate/logrotate.conf @@ -20,4 +20,4 @@ create 0640 root utmp # packages drop log rotation information into this directory include /etc/logrotate.d -# system-specific logs may also be configured here. \ No newline at end of file +# system-specific logs may also be configured here. diff --git a/ProjectCode/ConfigFiles/ModProbe/cramfs.conf b/ProjectCode/ConfigFiles/ModProbe/cramfs.conf index 8a1840d..b77c93a 100644 --- a/ProjectCode/ConfigFiles/ModProbe/cramfs.conf +++ b/ProjectCode/ConfigFiles/ModProbe/cramfs.conf @@ -1 +1 @@ -install cramfs /bin/true \ No newline at end of file +install cramfs /bin/true diff --git a/ProjectCode/ConfigFiles/ModProbe/dccp.conf b/ProjectCode/ConfigFiles/ModProbe/dccp.conf index 581b897..d453550 100644 --- a/ProjectCode/ConfigFiles/ModProbe/dccp.conf +++ b/ProjectCode/ConfigFiles/ModProbe/dccp.conf @@ -1 +1 @@ -install dccp /bin/true \ No newline at end of file +install dccp /bin/true diff --git a/ProjectCode/ConfigFiles/ModProbe/freevxfs.conf b/ProjectCode/ConfigFiles/ModProbe/freevxfs.conf index d955a1b..72d4aec 100644 --- a/ProjectCode/ConfigFiles/ModProbe/freevxfs.conf +++ b/ProjectCode/ConfigFiles/ModProbe/freevxfs.conf @@ -1 +1 @@ -install freevxfs /bin/true \ No newline at end of file +install freevxfs /bin/true diff --git a/ProjectCode/ConfigFiles/ModProbe/hfs.conf b/ProjectCode/ConfigFiles/ModProbe/hfs.conf index d958196..a991f49 100644 --- a/ProjectCode/ConfigFiles/ModProbe/hfs.conf +++ b/ProjectCode/ConfigFiles/ModProbe/hfs.conf @@ -1 +1 @@ -install hfs /bin/true \ No newline at end of file +install hfs /bin/true diff --git a/ProjectCode/ConfigFiles/ModProbe/hfsplus.conf b/ProjectCode/ConfigFiles/ModProbe/hfsplus.conf index ff899bb..9cba83f 100644 --- a/ProjectCode/ConfigFiles/ModProbe/hfsplus.conf +++ b/ProjectCode/ConfigFiles/ModProbe/hfsplus.conf @@ -1 +1 @@ -install hfsplus /bin/true \ No newline at end of file +install hfsplus /bin/true diff --git a/ProjectCode/ConfigFiles/ModProbe/jffs2.conf b/ProjectCode/ConfigFiles/ModProbe/jffs2.conf index 4d667ff..63360f3 100644 --- a/ProjectCode/ConfigFiles/ModProbe/jffs2.conf +++ b/ProjectCode/ConfigFiles/ModProbe/jffs2.conf @@ -1 +1 @@ -install jffs2 /bin/true \ No newline at end of file +install jffs2 /bin/true diff --git a/ProjectCode/ConfigFiles/ModProbe/rds.conf b/ProjectCode/ConfigFiles/ModProbe/rds.conf index 3bc54e4..650abee 100644 --- a/ProjectCode/ConfigFiles/ModProbe/rds.conf +++ b/ProjectCode/ConfigFiles/ModProbe/rds.conf @@ -1 +1 @@ -install rds /bin/true \ No newline at end of file +install rds /bin/true diff --git a/ProjectCode/ConfigFiles/ModProbe/sctp.conf b/ProjectCode/ConfigFiles/ModProbe/sctp.conf index 33bcb68..960a200 100644 --- a/ProjectCode/ConfigFiles/ModProbe/sctp.conf +++ b/ProjectCode/ConfigFiles/ModProbe/sctp.conf @@ -1 +1 @@ -install sctp /bin/true \ No newline at end of file +install sctp /bin/true diff --git a/ProjectCode/ConfigFiles/ModProbe/squashfs.conf b/ProjectCode/ConfigFiles/ModProbe/squashfs.conf index 9de3008..c177037 100644 --- a/ProjectCode/ConfigFiles/ModProbe/squashfs.conf +++ b/ProjectCode/ConfigFiles/ModProbe/squashfs.conf @@ -1 +1 @@ -install squashfs /bin/true \ No newline at end of file +install squashfs /bin/true diff --git a/ProjectCode/ConfigFiles/ModProbe/tipc.conf b/ProjectCode/ConfigFiles/ModProbe/tipc.conf index a2a8e52..260e2ad 100644 --- a/ProjectCode/ConfigFiles/ModProbe/tipc.conf +++ b/ProjectCode/ConfigFiles/ModProbe/tipc.conf @@ -1 +1 @@ -install tipc /bin/true \ No newline at end of file +install tipc /bin/true diff --git a/ProjectCode/ConfigFiles/ModProbe/udf.conf b/ProjectCode/ConfigFiles/ModProbe/udf.conf index dc5169d..4894688 100644 --- a/ProjectCode/ConfigFiles/ModProbe/udf.conf +++ b/ProjectCode/ConfigFiles/ModProbe/udf.conf @@ -1 +1 @@ -install udf /bin/true \ No newline at end of file +install udf /bin/true diff --git a/ProjectCode/ConfigFiles/ModProbe/usb_storage.conf b/ProjectCode/ConfigFiles/ModProbe/usb_storage.conf index a4f90da..38a1e49 100644 --- a/ProjectCode/ConfigFiles/ModProbe/usb_storage.conf +++ b/ProjectCode/ConfigFiles/ModProbe/usb_storage.conf @@ -1 +1 @@ -install usb-storage /bin/true \ No newline at end of file +install usb-storage /bin/true diff --git a/ProjectCode/ConfigFiles/NTP/ntp.conf b/ProjectCode/ConfigFiles/NTP/ntp.conf index ea510a3..a5764d6 100644 --- a/ProjectCode/ConfigFiles/NTP/ntp.conf +++ b/ProjectCode/ConfigFiles/NTP/ntp.conf @@ -4,4 +4,4 @@ server pfv-netboot.knel.net restrict 127.0.0.1 restrict ::1 interface ignore wildcard -interface listen 127.0.0.1 \ No newline at end of file +interface listen 127.0.0.1 diff --git a/ProjectCode/ConfigFiles/NetworkDiscovery/lldpd b/ProjectCode/ConfigFiles/NetworkDiscovery/lldpd index f44c8a0..b98df83 100644 --- a/ProjectCode/ConfigFiles/NetworkDiscovery/lldpd +++ b/ProjectCode/ConfigFiles/NetworkDiscovery/lldpd @@ -1,2 +1,2 @@ # Uncomment to start SNMP subagent and enable CDP, SONMP and EDP protocol -DAEMON_ARGS="-x -c -s -e" \ No newline at end of file +DAEMON_ARGS="-x -c -s -e" diff --git a/ProjectCode/ConfigFiles/SMTP/postfix_generic b/ProjectCode/ConfigFiles/SMTP/postfix_generic index 0712713..996fa4f 100644 --- a/ProjectCode/ConfigFiles/SMTP/postfix_generic +++ b/ProjectCode/ConfigFiles/SMTP/postfix_generic @@ -1 +1 @@ -/.*/ tsysrootaccount@knel.net \ No newline at end of file +/.*/ tsysrootaccount@knel.net diff --git a/ProjectCode/ConfigFiles/SNMP/snmpd-physicalhost.conf b/ProjectCode/ConfigFiles/SNMP/snmpd-physicalhost.conf index 20885f3..b8cb71f 100644 --- a/ProjectCode/ConfigFiles/SNMP/snmpd-physicalhost.conf +++ b/ProjectCode/ConfigFiles/SNMP/snmpd-physicalhost.conf @@ -43,4 +43,4 @@ pass_persist .1.3.6.1.4.1.9.9.13.1.3 /usr/local/bin/temper-snmp # smuxpeer .1.3.6.1.4.1.674.10892.1 # LLDP collection -master agentx \ No newline at end of file +master agentx diff --git a/ProjectCode/ConfigFiles/SNMP/snmpd-rpi.conf b/ProjectCode/ConfigFiles/SNMP/snmpd-rpi.conf index b74049d..4e98bf8 100644 --- a/ProjectCode/ConfigFiles/SNMP/snmpd-rpi.conf +++ b/ProjectCode/ConfigFiles/SNMP/snmpd-rpi.conf @@ -37,4 +37,4 @@ extend serial /usr/bin/sudo /usr/bin/cat /sys/firmware/devicetree/base/serial-nu # smuxpeer .1.3.6.1.4.1.674.10892.1 # LLDP collection -master agentx \ No newline at end of file +master agentx diff --git a/ProjectCode/ConfigFiles/SNMP/snmpd.conf b/ProjectCode/ConfigFiles/SNMP/snmpd.conf index ef6dd9d..8ae8ab4 100644 --- a/ProjectCode/ConfigFiles/SNMP/snmpd.conf +++ b/ProjectCode/ConfigFiles/SNMP/snmpd.conf @@ -41,4 +41,4 @@ extend serial /usr/bin/sudo /usr/bin/cat /sys/devices/virtual/dmi/id/product_ser # smuxpeer .1.3.6.1.4.1.674.10892.1 # LLDP collection -master agentx \ No newline at end of file +master agentx diff --git a/ProjectCode/ConfigFiles/SSH/Configs/ssh-audit-hardening.conf b/ProjectCode/ConfigFiles/SSH/Configs/ssh-audit-hardening.conf index 694dcea..8e80118 100644 --- a/ProjectCode/ConfigFiles/SSH/Configs/ssh-audit-hardening.conf +++ b/ProjectCode/ConfigFiles/SSH/Configs/ssh-audit-hardening.conf @@ -16,4 +16,4 @@ GSSAPIKexAlgorithms gss-curve25519-sha256-,gss-group16-sha512- HostbasedAcceptedAlgorithms sk-ssh-ed25519-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,sk-ssh-ed25519@openssh.com,ssh-ed25519,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-512,rsa-sha2-256-cert-v01@openssh.com,rsa-sha2-256 -PubkeyAcceptedAlgorithms sk-ssh-ed25519-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,sk-ssh-ed25519@openssh.com,ssh-ed25519,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-512,rsa-sha2-256-cert-v01@openssh.com,rsa-sha2-256 \ No newline at end of file +PubkeyAcceptedAlgorithms sk-ssh-ed25519-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,sk-ssh-ed25519@openssh.com,ssh-ed25519,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-512,rsa-sha2-256-cert-v01@openssh.com,rsa-sha2-256 diff --git a/ProjectCode/ConfigFiles/SSH/Configs/tsys-sshd-config b/ProjectCode/ConfigFiles/SSH/Configs/tsys-sshd-config index 7325a6f..fca1eb0 100644 --- a/ProjectCode/ConfigFiles/SSH/Configs/tsys-sshd-config +++ b/ProjectCode/ConfigFiles/SSH/Configs/tsys-sshd-config @@ -17,4 +17,4 @@ PermitRootLogin prohibit-password ClientAliveInterval 300 ClientAliveCountMax 3 AllowUsers root localuser subodev -LoginGraceTime 60 \ No newline at end of file +LoginGraceTime 60 diff --git a/ProjectCode/ConfigFiles/Syslog/rsyslog.conf b/ProjectCode/ConfigFiles/Syslog/rsyslog.conf index bac83ec..0ee8600 100644 --- a/ProjectCode/ConfigFiles/Syslog/rsyslog.conf +++ b/ProjectCode/ConfigFiles/Syslog/rsyslog.conf @@ -3,4 +3,4 @@ module(load="imklog") # provides kernel logging support #module(load="immark") # provides --MARK-- message capability *.* @tsys-librenms.knel.net:514 -:omusrmsg:EOF \ No newline at end of file +:omusrmsg:EOF diff --git a/ProjectCode/ConfigFiles/Systemd/journald.conf b/ProjectCode/ConfigFiles/Systemd/journald.conf index decbe3b..8b30ab3 100644 --- a/ProjectCode/ConfigFiles/Systemd/journald.conf +++ b/ProjectCode/ConfigFiles/Systemd/journald.conf @@ -28,4 +28,4 @@ #LineMax=48K #ReadKMsg=yes #Audit=no -Storage=persistent \ No newline at end of file +Storage=persistent diff --git a/ProjectCode/ConfigFiles/ZSH/tsys-zshrc b/ProjectCode/ConfigFiles/ZSH/tsys-zshrc index 01b6558..66c6e8f 100644 --- a/ProjectCode/ConfigFiles/ZSH/tsys-zshrc +++ b/ProjectCode/ConfigFiles/ZSH/tsys-zshrc @@ -255,4 +255,4 @@ fi # enable command-not-found if installed if [ -f /etc/zsh_command_not_found ]; then . /etc/zsh_command_not_found -fi \ No newline at end of file +fi