Cave Amber :mashtenjar: lvl NaN on Nostr: fucking hell though i was trying to generate my own /usr/share/pam-configs/ ...
fucking hell though i was trying to generate my own /usr/share/pam-configs/ pam-config for pam-auth-update & i got far enough but i couldn't get it to actually do what i wanted.
```
auth required pam_faillock.so preauth
auth [success=1 default=ignore] pam_unix.so nullok
auth [default=die] pam_faillock.so authfail
auth sufficient pam_faillock.so authsucc
```
right so following the very fucking lackluster docs https://wiki.ubuntu.com/PAMConfigFrameworkSpec... and also viewing other files in that directory... I thought...
```
Name: Faillock
Default: no
Priority: 256
Auth-Type: Primary
Auth:
required pam_faillock.so preauth
[default=die] pam_faillock.so authfail
sufficient pam_faillock.so authsucc
Account-Type: Primary
Account:
required pam_faillock.so
```
of course... that was great but the resulting output was mangled with pam-configs/unix
so i ended up getting a resulting output of...
```
auth [success=1 default=ignore] pam_unix.so nullok
auth required pam_faillock.so preauth
auth [default=die] pam_faillock.so authfail
auth sufficient pam_faillock.so authsucc
```
which i went oh fuck okay this is gonna be a bit more difficult. still haven't bothered to fix it i just edited my config by hand after using pam-auth-update to disable my template.
```
auth required pam_faillock.so preauth
auth [success=1 default=ignore] pam_unix.so nullok
auth [default=die] pam_faillock.so authfail
auth sufficient pam_faillock.so authsucc
```
right so following the very fucking lackluster docs https://wiki.ubuntu.com/PAMConfigFrameworkSpec... and also viewing other files in that directory... I thought...
```
Name: Faillock
Default: no
Priority: 256
Auth-Type: Primary
Auth:
required pam_faillock.so preauth
[default=die] pam_faillock.so authfail
sufficient pam_faillock.so authsucc
Account-Type: Primary
Account:
required pam_faillock.so
```
of course... that was great but the resulting output was mangled with pam-configs/unix
so i ended up getting a resulting output of...
```
auth [success=1 default=ignore] pam_unix.so nullok
auth required pam_faillock.so preauth
auth [default=die] pam_faillock.so authfail
auth sufficient pam_faillock.so authsucc
```
which i went oh fuck okay this is gonna be a bit more difficult. still haven't bothered to fix it i just edited my config by hand after using pam-auth-update to disable my template.