2
2
.\" Public Domain 1995 Rickard E. Faith (faith@cs.unc.edu)
3
.TH MCOOKIE 1 "25 September 1995" "" "Linux Programmer's Manual"
3
.TH MCOOKIE 1 "June 2011" "util-linux" "User Commands"
5
5
mcookie \- generate magic cookies for xauth
13
11
generates a 128-bit random hexadecimal number for use with the X authority
19
17
The "random" number generated is actually the output of the MD5 message
20
18
digest fed with various pieces of random information: the current time, the
21
process id, the parent process id, the contents of an input file (if
23
is specified), and several bytes of information from the first of the
24
following devices which is present:
19
process id, the parent process id, and optionally the contents of an input
20
file. and several bytes of information from the first of the following
21
devices which is present:
29
\fB\-f\fR, \fB\-\-file\fR=\fIFILE\fR
30
Use file as a macig cookie seed. When file is defined as `-' character
31
input is read from stdin.
33
\fB\-v\fR, \fB\-\-verbose\fR
34
Explain what is being done.
36
\fB\-V\fR, \fB\-\-version\fR
37
Output version information and exit.
39
\fB\-h\fR, \fB\-\-help\fR
40
Display this help and exit.
31
42
The entropy in the generated 128-bit is probably quite small (and,
32
43
therefore, vulnerable to attack) unless a non-pseudorandom number generator