Learning Linux II: Administration and networking

April 14, 2023
Documenting my journey with linux and devops part II

Administration And Networking

ACL

getfacl - get current acl settings setfacl - set acl settings

//     ALL (Allow)         ! (Except for) 
<user> ALL=/usr/bin/passwd,! /usr/bin/passwd root
<user> ALL=(ALL) NOPASSWD: ALL (DO NOT USE)

attributes

POISX details file attributes to complement premmisions, most commonly used it the immutable attribute

chattr - change attributes, +i for adding immutable - won’t be able to write or delete even as root.

networking II

ip link show - get all interfaces, for more information lshw -class network (list hardware of network kind)

systemd-networkd

static routes notes

DNS clients notes

bridge notes

network sockets

diagnostics

tcpdump & nmap for network diagnostics

service managment

systemctl - systemd system and service manager

unit targets

unit dependencies

cheatsheet

Requires - if the unit loads, units listed here will also load. if one of the required units is deactivated, this unit will also be deactivated
Requisite - if the units listed here are not already loaded, thiss unit will fail
Wants - this unit wants to load the units listed here, but won't fail if any of these units fail 
Before - will start this unit before the units mentioned with "Before="
After -  will start this unit after the units mentioned with "After="

systemd timers

systemd sockets

systemd mounting filesystem