An XCCDF Group - A logical subset of the XCCDF Benchmark
/etc/issue
You are accessing a U.S. Government (USG) Information System (IS) that is provided for USG-authorized use only. By using this IS (which includes any device attached to this IS), you consent to the following conditions: -The USG routinely intercepts and monitors communications on this IS for purposes including, but not limited to, penetration testing, COMSEC monitoring, network operations and defense, personnel misconduct (PM), law enforcement (LE), and counterintelligence (CI) investigations. -At any time, the USG may inspect and seize data stored on this IS. -Communications using, or data stored on, this IS are not private, are subject to routine monitoring, interception, and search, and may be disclosed or used for any USG-authorized purpose. -This IS includes security measures (e.g., authentication and access controls) to protect USG interests -- not for your personal benefit or privacy. -Notwithstanding the above, using this IS does not constitute consent to PM, LE or CI investigative searching or monitoring of the content of privileged communications, or work product, related to personal representation or services by attorneys, psychotherapists, or clergy, and their assistants. Such communications and work product are private and confidential. See User Agreement for details.
I've read & consent to terms in IS user agreem't.
/etc/issue.net
/etc/motd
$ sudo chgrp root /etc/issue
$ sudo chgrp root /etc/issue.net
$ sudo chgrp root /etc/motd
$ sudo chown root /etc/issue
$ sudo chown root /etc/issue.net
$ sudo chown root /etc/motd
$ sudo chmod 0644 /etc/issue
$ sudo chmod 0644 /etc/issue.net
$ sudo chmod 0644 /etc/motd
/etc/pam.d
/etc/pam.d/login
/etc/pam.d/system-auth
pam_faillock
/usr/share/doc/pam-VERSION/txts/README.pam_faillock
remember
pam_pwhistory
authselect
authselect enable-feature with-pwhistory
/etc/security/pwhistory.conf
pam_faillock.so
/etc/security/faillock.conf
deny = <count>
authconfig
unlock_time=<interval-in-seconds>
interval-in-seconds
unlock_time
0
faillock
pam_pwquality
pam_pwquality(8)
password requisite pam_pwquality.so try_first_pass local_users_only retry=3 authtok_type=
/etc/security/pwquality.conf
difok = 4 minlen = 14 dcredit = -1 ucredit = -1 lcredit = -1 ocredit = -1 maxrepeat = 3
minclass
* Upper-case characters * Lower-case characters * Digits * Special characters (for example, punctuation)
minlen
minlen=
pam_pwquality.so
retry=
/etc/shadow
/etc/login.defs
ENCRYPT_METHOD
/etc/pam.d/password-auth
password
pam_unix.so
password sufficient pam_unix.so other arguments...
/etc/passwd
NUM_DAYS
USER
$ sudo chage -I NUM_DAYS USER
-E
/etc/default/useradd
INACTIVE=
useradd
$ sudo getent passwd | awk -F: '{ print $1}' | uniq -d
passwd
su
login
login.defs(5)
PASS_MAX_DAYS
-M
PASS_MIN_DAYS
-m
PASS_WARN_AGE
-W
$ sudo chage -M 180 -m 7 -W 7 USER
$ sudo chage -M USER
$ sudo chage -m 1 USER
$ sudo chage --warndays USER
$ sudo chage --inactive 30USER
x
*
$ sudo awk -F: '!$2 {print $1}' /etc/shadow
$ sudo passwd [username]
$ sudo passwd -l [username]
.forward
sudo
/etc/securetty
/dev/console
/dev/tty*
/dev/vc/*
root
var_pam_wheel_group_for_su
pam_wheel.so
group
/etc/pam.d/su
1000
halt
sync
shutdown
nfsnobody
$ sudo usermod -L account
$ sudo usermod -s /sbin/nologin account
auth required pam_wheel.so use_uid group=
TMOUT
/etc/profile
/etc/profile.d/tmout.sh
typeset -xr TMOUT=
declare -xr TMOUT=
typeset
$ sudo chgrp USER_GROUP /home/USER/.INIT_FILE
$ sudo chown USER /home/USER/.*
$ sudo mkdir /home/USER
$ sudo chgrp USER_GROUP /home/USER
$ sudo chown USER /home/USER
0740
$ sudo chmod 0740 /home/USER/.INIT_FILE
0750
$ sudo chmod 0750 /home/USER
# echo $PATH
.
# ls -ld DIR
..
/
PATH=:/bin PATH=/bin: PATH=/bin::/sbin
umask
/etc/bashrc
UMASK
/etc/profile.d