Hello
Every time there's a macOS update my security settings for ssh and sudo revert to the default. I have to then:
1. Re-enable pam_tid.so in /etc/pam.d/sudo
2. Re-enable pam_ssh_agent_auth.so in /etc/pam.d/sudo
3. Re-disable password auth in sshd_config /etc/ssh/sshd_config
I can freely modify these files as root but if I create a run-on-startup launchd script that executes a bash script it executes but gets permission denied trying to modify the files. I've so far tried waiting 30s but it's always denied, tried adding launchd to the full disk access list but nothing works.
Is there a way around this or is it just flat out denied? Very annoying.
Every time there's a macOS update my security settings for ssh and sudo revert to the default. I have to then:
1. Re-enable pam_tid.so in /etc/pam.d/sudo
2. Re-enable pam_ssh_agent_auth.so in /etc/pam.d/sudo
3. Re-disable password auth in sshd_config /etc/ssh/sshd_config
I can freely modify these files as root but if I create a run-on-startup launchd script that executes a bash script it executes but gets permission denied trying to modify the files. I've so far tried waiting 30s but it's always denied, tried adding launchd to the full disk access list but nothing works.
Is there a way around this or is it just flat out denied? Very annoying.