Skip to content

Instantly share code, notes, and snippets.

@jhsea3do
Created August 9, 2018 09:50
Show Gist options
  • Save jhsea3do/09f81230790e3e9dac1a469eea718d31 to your computer and use it in GitHub Desktop.
Save jhsea3do/09f81230790e3e9dac1a469eea718d31 to your computer and use it in GitHub Desktop.
# ssh -vvvv $host
# pledge: network
cat /etc/pam.d/postlogin
#%PAM-1.0
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
session [success=1 default=ignore] pam_succeed_if.so service !~ gdm* service !~ su* quiet
session [default=1] pam_lastlog.so nowtmp showfailed
############session optional pam_lastlog.so silent noupdate showfailed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment