Skip to content

Commit 4f59315

Browse files
author
Vladimir Kotal
committed
finish spellcheck of the file
1 parent 8d28fb0 commit 4f59315

File tree

2 files changed

+36
-14
lines changed

2 files changed

+36
-14
lines changed

unix_dict.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
personal_ws-1.1 en 324
1+
personal_ws-1.1 en 328
22
Illumos
33
Prog
44
Ctrl
@@ -59,6 +59,7 @@ lockfiles
5959
lockfile
6060
Principy
6161
Xlinker
62+
SGID
6263
SUS
6364
VFS
6465
SVR
@@ -171,6 +172,7 @@ BCPL
171172
DNDEBUG
172173
const
173174
MFF
175+
EUID
174176
cplusplus
175177
Solaris
176178
longopts
@@ -214,6 +216,7 @@ util
214216
mkfifo
215217
Salus
216218
Ressler
219+
EGID
217220
coredump
218221
utils
219222
extern
@@ -242,6 +245,7 @@ subtree
242245
syscall
243246
CFLAGS
244247
nbyte
248+
RUID
245249
OSPF
246250
ABI
247251
Vahalia

user-access.tex

Lines changed: 31 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -97,24 +97,28 @@
9797
\end{itemize}
9898
%%%%%
9999

100+
ifdef([[[NOSPELLCHECK]]], [[[
100101
\pdfbookmark[1]{getpwnam, getpwuid, getpwent}{getpw}
102+
]]])
101103

102104
\label{GETPW_FUNC}
103105
\begin{slide}
104106
\sltitle{Obtain user/group information}
105107
\begin{itemize}
108+
ifdef([[[NOSPELLCHECK]]], [[[
106109
\item \texttt{struct passwd *\funnm{getpwnam}(const char *name)}
107-
110+
]]])
108111
return structure describing user found in password database or NULL.
109112

113+
ifdef([[[NOSPELLCHECK]]], [[[
110114
\item \texttt{struct passwd *\funnm{getpwuid}(uid\_t uid)}
111-
115+
]]])
112116
ditto; perform search according to UID.
113-
117+
ifdef([[[NOSPELLCHECK]]], [[[
114118
\item \texttt{void \funnm{setpwent}(void)}
115119
\item \texttt{void \funnm{endpwent}(void)}
116120
\item \texttt{struct passwd *\funnm{getpwent}(void)}
117-
121+
]]])
118122
these functions traverse password database. \funnm{setpwent} rewinds to the
119123
beginning of the password database, \funnm{getpwent} gets the current entry,
120124
\funnm{endpwent} closes the password database and free allocated resources.
@@ -150,11 +154,12 @@
150154
\begin{itemize}
151155
\item today's systems are not confined to only using
152156
\texttt{/etc/passwd} and \texttt{/etc/groups}
153-
\item such systems have \emph{databases} (passwd, groups, protocols, \dots)
157+
\item such systems have \emph{databases} (\texttt{passwd, groups, protocols},
158+
\dots)
154159
\item database data come from \emph{sources} (files, DNS, NIS, LDAP, \dots)
155160
\item file \texttt{nsswitch.conf} defines what databases use what sources
156161
\item library functions must support this, obviously
157-
\item it is possible to combine some sources, eg. users may be first be searched
162+
\item it is possible to combine some sources, e.g. users may be first be searched
158163
in \texttt{/etc/passwd}, then in LDAP
159164
\item came first with Solaris, other systems took over the idea
160165
\end{itemize}
@@ -364,25 +369,30 @@
364369
\end{itemize}
365370

366371
%%%%%
367-
372+
373+
ifdef([[[NOSPELLCHECK]]], [[[
368374
\pdfbookmark[1]{getuid, getgid, geteuid, getegid, getgroups}{getuid}
375+
]]])
369376

370377
\begin{slide}
371378
\sltitle{Process owner identification}
372379
\begin{itemize}
380+
ifdef([[[NOSPELLCHECK]]], [[[
373381
\item \texttt{uid\_t \funnm{getuid}(void)}
374-
382+
]]])
375383
returns real user ID of the calling process.
384+
ifdef([[[NOSPELLCHECK]]], [[[
376385
\item \texttt{uid\_t \funnm{geteuid}(void)}
377-
386+
]]])
378387
returns effective user ID of the calling process.
388+
ifdef([[[NOSPELLCHECK]]], [[[
379389
\item \texttt{gid\_t \funnm{getgid}(void)}
380-
390+
]]])
381391
returns real group ID of the calling process.
392+
ifdef([[[NOSPELLCHECK]]], [[[
382393
\item \texttt{gid\_t \funnm{getegid}(void)}
383-
394+
]]])
384395
returns effective group ID of the calling process.
385-
386396
ifdef([[[NOSPELLCHECK]]], [[[
387397
\item \texttt{int \funnm{getgroups}(int \emph{gidsz}, gid\_t \emph{glist}[])}
388398
]]])
@@ -398,7 +408,9 @@
398408
groups. When \texttt{0 < gidsz < \#groups}, it returns \texttt{-1}.
399409
\item In Unix, there are many data types such as \verb#uid_t#, \verb#gid_t#,
400410
\verb#size_t#, \verb#pid_t#, etc. In general, these are integer types and you
401-
can often find them in the \texttt{/usr/inc{}lude/sys/types.h} header file.
411+
can often find them in the
412+
ifdef([[[NOSPELLCHECK]]], [[[\texttt{/usr/inc{}lude/sys/types.h}]]]) header
413+
file.
402414
\item Solaris has the \texttt{pcred} command that provides process
403415
identification information in a simple form:
404416

@@ -411,19 +423,25 @@
411423

412424
%%%%%
413425

426+
ifdef([[[NOSPELLCHECK]]], [[[
414427
\pdfbookmark[1]{setuid, setgid, setgroups}{ownerchange}
428+
]]])
415429

416430
\begin{slide}
417431
\sltitle{Process owner change}
418432
\begin{itemize}
433+
ifdef([[[NOSPELLCHECK]]], [[[
419434
\item \texttt{int \funnm{setuid}(uid\_t \emph{uid});}
435+
]]])
420436
\begin{itemize}
421437
\item in process with EUID~==~0 sets RUID, EUID and saved-SUID to
422438
\texttt{uid}
423439
\item for other processes it sets just EUID, and \texttt{uid} must be
424440
either equal to RUID or saved UID
425441
\end{itemize}
442+
ifdef([[[NOSPELLCHECK]]], [[[
426443
\item \texttt{int \funnm{setgid}(gid\_t \emph{gid});} \\
444+
]]])
427445
similar to \texttt{setuid}, for group-IDs of the process.
428446
ifdef([[[NOSPELLCHECK]]], [[[
429447
\item \texttt{int \funnm{setgroups}(int \emph{ngroups},

0 commit comments

Comments
 (0)