An XCCDF Group - A logical subset of the XCCDF Benchmark
/etc/passwd
/etc/shadow
^(bin|oracle|sapadm)$
root
NUM_DAYS
USER
$ sudo chage -I NUM_DAYS USER
-E
/etc/default/useradd
INACTIVE=
useradd
$ sudo getent passwd | awk -F: '{ print $1}' | uniq -d
/etc/login.defs
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
PASS_MIN_LEN
15
12
pam_pwquality
$ sudo chage -M USER
/etc/pam.d/system-auth
/etc/pam.d/password-auth
x
*
nullok
$ sudo awk -F: '!$2 {print $1}' /etc/shadow
$ sudo passwd [username]
$ sudo passwd -l [username]
sudo
/etc/securetty
/dev/console
/dev/tty*
/dev/vc/*
$ sudo echo > /etc/securetty
1000
$ sudo usermod -s /sbin/nologin account
ttyS0 ttyS1
vc/1 vc/2 vc/3 vc/4