System Security State Flashcards
who
Lists currently logged in users.
w
Logged in users with processes running.
last
All users who have logged in. head can help with interpreted.
-f /var/log/bump
lsof
Determine files currently open on system. Ordered CMD, PID, USER, FD, TYPE, DEVICE, SIZE, Node Name.
- i: list network ports.
- u: specify user.
find
Can be used to locate all files that have specific SUID/SGID bits set.
In form of -perm -
ulimit
Can be used to set limits on amount of resources in system user can utilize.
- a: displays all and switches for.
- m: memory
/etc/security/limits.conf
Permanent limits storage. Set in
/etc/sudoers
Default configuration file for configuring users/groups granted elevated privileges. visudo to edit.
fuser
Lists all PIDs to file/network port in use. Ex: 22/tcp
netstat, ss
Use switches to view active connections.
- t: TCP
- u: UDP
- n: IP number instead of host name.
- a: all sockets. Listening and non-listening.
nmap
Network map. Scan host for open ports and services.