From 40658a365f6f83e0bf103628a14d2ecb94966545 Mon Sep 17 00:00:00 2001 From: Jet Hughes Date: Mon, 13 Mar 2023 13:54:42 +1300 Subject: [PATCH] vault backup: 2023-03-13 13:54:42 --- content/notes/01-vm-ipv6.md | 7 +++++++ content/notes/04-scripting-techniques.md | 17 +++++++++++++++-- content/notes/cosc-301.md | 1 + 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 content/notes/01-vm-ipv6.md diff --git a/content/notes/01-vm-ipv6.md b/content/notes/01-vm-ipv6.md new file mode 100644 index 000000000..231470a25 --- /dev/null +++ b/content/notes/01-vm-ipv6.md @@ -0,0 +1,7 @@ +--- +title: "01-vm-ipv6" +tags: +- +--- + +info at start of lectre 4 (6 march) diff --git a/content/notes/04-scripting-techniques.md b/content/notes/04-scripting-techniques.md index ce8289045..d08583f6f 100644 --- a/content/notes/04-scripting-techniques.md +++ b/content/notes/04-scripting-techniques.md @@ -6,7 +6,14 @@ tags: --- -Least priviledge +**Least privilege** +- sys admins should follow this principle +- users/proceses should not be given more privileges than they need +- **processes always belong to users** +- e.g., + - setuid: only when neccesary + - web servers starts as root to open port 80, then switches to a less privileged user + - temporary files shouldn't be in /tmp ⇒ everyone can access tmp, not secure scripting - history @@ -29,4 +36,10 @@ conditions loops -arithmet \ No newline at end of file +arithmetic + +sed and awk + +shell script vs c/c++ + +further reading diff --git a/content/notes/cosc-301.md b/content/notes/cosc-301.md index 12fc810c2..dc382e311 100644 --- a/content/notes/cosc-301.md +++ b/content/notes/cosc-301.md @@ -10,6 +10,7 @@ tags: https://www.cs.otago.ac.nz/cosc301/schedule.php # Assignments +[[01-vm-ipv6]] # Labs - [x] [[01-VM-intro]]