From 2d3231ce5494520c42e4ee58d09d29d8e67f727c Mon Sep 17 00:00:00 2001 From: Simone Piccardi Date: Fri, 20 Jul 2001 20:59:06 +0000 Subject: [PATCH] Aggiunta tabella --- filedir.tex | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/filedir.tex b/filedir.tex index b7a2bb9..16d8100 100644 --- a/filedir.tex +++ b/filedir.tex @@ -57,8 +57,25 @@ valori riportati in \ntab. \begin{table}[htb] \centering - - \caption{I bit deipermessi di accesso ai file, come definiti in + \footnotesize + \begin{tabular}[c]{|c|l|} + \hline + \var{st\_mode} bit & Significato \\ + \hline + \hline + \macro{S\_IRUSR} & \textit{user-read}, l'utente può leggere \\ + \macro{S\_IWUSR} & \textit{user-write}, l'utente può scrivere \\ + \macro{S\_IXUSR} & \textit{user-execute}, l'utente può eseguire \\ + \hline + \macro{S\_IRGRP} & \textit{group-read}, il gruppo può leggere \\ + \macro{S\_IWGRP} & \textit{group-write}, il gruppo può scrivere \\ + \macro{S\_IXGRP} & \textit{group-execute}, il gruppo può eseguire\\ + \hline + \macro{S\_IROTH} & \textit{other-read}, tutti possono leggere \\ + \macro{S\_IWOTH} & \textit{other-write}, tutti possono scrivere \\ + \macro{S\_IXOTH} & \textit{other-execute}, tutti possono eseguire\\ + \end{tabular} + \caption{I bit dei permessi di accesso ai file, come definiti in \texttt{}} \label{tab:file_bit_perm} \end{table} @@ -77,6 +94,8 @@ valori riportati in \ntab. % torneremo su questo in maggiori dettagli in seguito in \secref{sec:proc_perms}. + + \subsection{I flag \texttt{suid} e \texttt{sgid}} \label{sec:filedir_suid_sgid} @@ -749,7 +768,7 @@ per questo sempre in \texttt{sys/stat.h} sono definiti i flag riportati in \macro{S\_IWGRP} & 00020 & group has write permission \\ \macro{S\_IXGRP} & 00010 & group has execute permission \\ \macro{S\_IRWXO} & 00007 & mask for permissions for others (not in - group) \\ + group) \\ \macro{S\_IROTH} & 00004 & others have read permission \\ \macro{S\_IWOTH} & 00002 & others have write permisson \\ \macro{S\_IXOTH} & 00001 & others have execute permission \\ -- 2.30.2