Code Monkey home page Code Monkey logo

born2beroot's Introduction

OS: Debian 11 (Bullseye)
__________________________________________________________

INSTALLED APT PACKAGES

- ufw
- sysstat (mpstat) --> monitoring CPU usage
- libpam-pwquality libpwquality-tools --> pam module
- sudo (man sudoers)
- net-tools (netstat) --> cf. screenshot `netstat.png`
- apparmor-utils (aa-genprof)
__________________________________________________________

USEFUL COMMANDS

passwords
- pwscore
- chage

users & groups
- id
- groups
- getent groups
- adduser (vs useradd !!!)
- deluser (vs userdel !!!)

cron
- crontab -l
- service cron [start|stop|restart]
- systemctl enable cron

ufw
- ufw status
- ufw status verbose
- ufw status numbered

ssh
- ssh-copy-id -i ~/.ssh/id_rsa.pub user@host

apparmor
- aa-status
- aa-genprof script.sh

To do during peer evaluation
- adduser
- addgroup evalated
- usermod -aG sudo user42 bob
- gpasswd --delete user group
__________________________________________________________

USEFUL FOLDERS

Users
- /etc/hostname --> rename hostname (need reboot)
- /etc/sudoers --> sudo policy

PAM
- /etc/pam.d/common-password --> password policy
- /etc/login.defs

cron
- /var/spool/cron/crontabs/ --> cron jobs

ssh
- /etc/ssh/sshd_config --> PermitRootLogin no, UsePAM yes

system
- /proc/meminfo --> memory infos
- /proc/stat --> CPU infos
__________________________________________________________

Login as root via ssh not allowed for two reasons:
- `PermitRootLogin no`
- `PasswordAuthentication no` and not `authorized_keys` into /root/.ssh
--> in /etc/ssh/sshd_config
__________________________________________________________

born2beroot's People

Contributors

thoo-ma avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.