aboutsummaryrefslogtreecommitdiff
path: root/course/figures/file-permissions.tikz
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2024-07-20 20:36:44 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2024-07-20 20:39:07 +0200
commit00f9fdf7db792d942180a31253b349803d5683cd (patch)
tree972da51a45a4c804eb0d6706e2db1d96d3a7a69f /course/figures/file-permissions.tikz
parentdf66d76b5b29703f1822beda897dd92c5f90af5e (diff)
downloadSOS-00f9fdf7db792d942180a31253b349803d5683cd.tar.gz
SOS-00f9fdf7db792d942180a31253b349803d5683cd.zip
add first version of the SOS workbook
Diffstat (limited to 'course/figures/file-permissions.tikz')
-rw-r--r--course/figures/file-permissions.tikz46
1 files changed, 46 insertions, 0 deletions
diff --git a/course/figures/file-permissions.tikz b/course/figures/file-permissions.tikz
new file mode 100644
index 0000000..8687355
--- /dev/null
+++ b/course/figures/file-permissions.tikz
@@ -0,0 +1,46 @@
+\begin{tikzpicture}
+
+\node (u) {\texttt{rwx}};
+\node[right=0pt of u] (g) {\texttt{rw-}};
+\node[right=0pt of g] (o) {\texttt{r-{}-}};
+
+\coordinate (repr) at (-0.8, 0);
+\node[anchor=east] at (repr |- u){symbolisch};
+
+\coordinate (brackets) at (0, 0.2);
+\coordinate (lbrackets) at (0, -0.2);
+\node[above = 1.5cm of u] (ul) {Owner};
+\draw (u.west) -- (u.west |- brackets) -- (u.east |- brackets) -- (u.east);
+\node[above = 1cm of g] (gl) {Group};
+\draw (g.west) -- (g.west |- brackets) -- (g.east |- brackets) -- (g.east);
+\node[above = 0.5cm of o] (ol) {Other};
+\draw (o.west) -- (o.west |- brackets) -- (o.east |- brackets) -- (o.east);
+
+\node[right = 1.5cm of g] (expl) {\texttt{rwx}};
+\draw[dashed] (expl.west) -- (expl.west |- lbrackets) -- (expl.east |- lbrackets) -- (expl.east);
+\draw[dashed] (expl.south) -- ($(expl.south) - (0, 0.15)$) -- ($(o.south) - (0, 0.15)$) -- (o.south);
+\draw[dashed] (o.west) -- (o.west |- lbrackets) -- (o.east |- lbrackets) -- (o.east);
+
+\node[anchor=west] (rexpl) at (expl.east |- ul) {\textbf{r}ead};
+\draw ($(expl.north) - (0.2, 0)$) |- (rexpl);
+\node[anchor=west] (wexpl) at (expl.east |- gl) {\textbf{w}rite};
+\draw (expl) |- (wexpl);
+\node[anchor=west] (xexpl) at (expl.east |- ol) {e\textbf{x}ecute};
+\draw ($(expl.north) + (0.2, 0)$) |- (xexpl);
+
+\node[above = of gl] {Berechtigungsklassen};
+
+\node[below = 0.2cm of u] (ub) {\texttt{111}};
+\node[below = 0.2cm of g] (gb) {\texttt{110}};
+\node[below = 0.2cm of o] (ob) {\texttt{100}};
+\node[anchor=east] at (repr |- ub){binär};
+
+\node[below = 0.2cm of ub] (uo) {\texttt{07}};
+\node[below = 0.2cm of gb] (go) {\texttt{06}};
+\node[below = 0.2cm of ob] (oo) {\texttt{04}};
+\node[anchor=east] at (repr |- uo){oktal};
+
+\draw (u) -- (ul);
+\draw (g) -- (gl);
+\draw (o) -- (ol);
+\end{tikzpicture}