Skip to content

Instantly share code, notes, and snippets.

@pprawdz
pprawdz / Linux cheatsheet
Last active September 17, 2021 13:40
Lockdown
General
Change root password su into root account, passwd
User modification Add useradd
Delete userdel
Modify usermod
Change Password passwd
View users Logged in w –i who
All users cat /etc/passwd | cut -d':' -f1
Who can sudo visudo Identify privileged users and groups
cat /etc/group Identify users in privileged groups