aboutsummaryrefslogtreecommitdiff
path: root/scripts/os/freebsd/50-idm
diff options
context:
space:
mode:
authorCullum Smith <cullum@sacredheartsc.com>2024-10-15 23:35:53 -0400
committerCullum Smith <cullum@sacredheartsc.com>2024-10-15 23:35:53 -0400
commit145668c3dd67c5271eddcb62d1e7843487d768a7 (patch)
tree4c7d563e9d320e6b122ee3dbf048d93eee6776c3 /scripts/os/freebsd/50-idm
parentb2af400a1098ebf445575d169e11a6717867045f (diff)
downloadinfrastructure-145668c3dd67c5271eddcb62d1e7843487d768a7.tar.gz
huge amount of fixes
Diffstat (limited to 'scripts/os/freebsd/50-idm')
-rw-r--r--scripts/os/freebsd/50-idm9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/os/freebsd/50-idm b/scripts/os/freebsd/50-idm
index d9c2541..0a9e882 100644
--- a/scripts/os/freebsd/50-idm
+++ b/scripts/os/freebsd/50-idm
@@ -20,7 +20,8 @@ pkg install -y \
# Configure PAM/NSS integration.
install_file -m 0644 \
/etc/nsswitch.conf \
- /etc/pam.d/sshd
+ /etc/pam.d/sshd \
+ /etc/pam.d/sudo
install_template -m 0644 \
/etc/krb5.conf \
@@ -114,7 +115,11 @@ install_file -m 0555 \
/usr/local/libexec/idm-ssh-authorized-keys
# Create user for running SSH AuthorizedKeysCommand.
-add_user -u "$ssh_authzkeys_uid" -g "$host_keytab_groupname" "$ssh_authzkeys_username"
+add_user \
+ -u "$ssh_authzkeys_uid" \
+ -g "$host_keytab_groupname" \
+ -d /nonexistent \
+ "$ssh_authzkeys_username"
# Enable and start nslcd/nscd.
sysrc -v \