I hereby claim:
- I am shichao-an on github.
- I am shichaoan (https://keybase.io/shichaoan) on keybase.
- I have a public key whose fingerprint is 9547 1ADF DFE5 3DBC A547 EA7E 7EC8 C7F8 8037 E444
To claim this, I am signing this object:
#!/bin/bash | |
netstat -nr -f inet |
import pycurl | |
import sys | |
from humanize import naturalsize | |
import time | |
START_TIME = None | |
# PAM configuration for the Secure Shell service | |
# Standard Un*x authentication. | |
@include common-auth | |
# Disallow non-root logins when /etc/nologin exists. | |
account required pam_nologin.so | |
# Uncomment and edit /etc/security/access.conf if you need to set complex | |
# access limits that are hard to express in sshd_config. |
#!/bin/bash | |
# Run as root | |
set -e | |
apt-get update | |
apt-get install -y build-essential | |
apt-get install -y libncurses5-dev | |
useradd mysql |
# | |
# /etc/pam.d/common-session - session-related modules common to all services | |
# | |
# This file is included from other service-specific PAM config files, | |
# and should contain a list of modules that define tasks to be performed | |
# at the start and end of sessions of *any* kind (both interactive and | |
# non-interactive). | |
# | |
# As of pam 1.0.1-6, this file is managed by pam-auth-update by default. | |
# To take advantage of this, it is recommended that you configure any |
#!/bin/bash | |
# vim: softtabstop=4 shiftwidth=4 expandtab fenc=utf-8 spell spelllang=en cc=120 | |
set -e | |
# Check Ubuntu release | |
[ "$(lsb_release -sc)" = "trusty" ] || { | |
echo 'This script should be run on Ubuntu 14.04.' >&2 | |
exit 1 | |
} |
#!/bin/bash | |
# vim: softtabstop=4 shiftwidth=4 expandtab fenc=utf-8 spell spelllang=en cc=120 | |
set -e | |
# Check Ubuntu release | |
[ "$(lsb_release -sc)" = "trusty" ] || { | |
echo 'This script should be run on Ubuntu 14.04.' >&2 | |
exit 1 | |
} |
#!/bin/bash | |
# Setup and enable auditd | |
# MUST REBOOT AFTER SETUP | |
# | |
# FUNCTIONALITIES: | |
# | |
# * Auditing user TTY | |
# aureport --tty | |
# | |
# * Auditing root commands (real uid) |
I hereby claim:
To claim this, I am signing this object: