aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Beltran del Rio <ruben@unlimited.pizza>2024-01-17 00:21:55 +0100
committerRuben Beltran del Rio <ruben@unlimited.pizza>2024-01-17 00:21:55 +0100
commite1293d89f50cb2d859f8e233240ffdf185b30046 (patch)
tree69407c0dd0145c130297df029e7254db3c32f19a
parentb007db06774982a3d177c84f231af04433bc0137 (diff)
Add example
-rw-r--r--learning.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/learning.md b/learning.md
index 3e012c2..8b113ee 100644
--- a/learning.md
+++ b/learning.md
@@ -1,4 +1,4 @@
-2024-01-16: You don't actually need the users in unix in some situations, you can use an arbitrary number of the id and if the other system expects it, then it will work. In fact, you can "sudo" that.
+2024-01-16: You don't actually need the users in unix in some situations, you can use an arbitrary number of the id and if the other system expects it, then it will work. In fact, you can "sudo" into that if runas_allow_unknown_id (then run sudo -u \#9999 <your_command>)
2024-01-15: SELinux provides restrictions to files I wasn't aware of, and can prevent execution in some contexts. With eza you can view it with -Z.
2024-01-14: On linux you can see logical volumes inside a partition with lsblk, they're shown as lvm. If you resize a partition, you still need to resize the lvm (eg. with `lvresize -l +100%FREE` to take all remaining free space), AND the filesystem (eg. using resize2fs). This is important eg when installing an OS from an image as you might not be using your whole disk.
2024-01-14: On fedora rather than ufw or nftables, you use firewalld. You can create services (eg. gopher with port tcp 70 goes in /etc/firewalld/services/gopher.xml), attach them to zones with `firewall-cmd --zone=<YOURZONE> --add-service=gopher --permanent`