2009-07-22 04:29:04 -05:00
|
|
|
.\" mcookie.1 --
|
2006-12-06 17:25:32 -06:00
|
|
|
.\" Public Domain 1995 Rickard E. Faith (faith@cs.unc.edu)
|
2014-03-08 15:43:26 -06:00
|
|
|
.TH MCOOKIE 1 "March 2014" "util-linux" "User Commands"
|
2006-12-06 17:25:32 -06:00
|
|
|
.SH NAME
|
|
|
|
mcookie \- generate magic cookies for xauth
|
|
|
|
.SH SYNOPSIS
|
2009-07-22 04:29:04 -05:00
|
|
|
.B mcookie
|
2011-06-11 10:44:12 -05:00
|
|
|
[\fIoptions\fR]
|
2006-12-06 17:25:32 -06:00
|
|
|
.SH DESCRIPTION
|
|
|
|
.B mcookie
|
|
|
|
generates a 128-bit random hexadecimal number for use with the X authority
|
|
|
|
system. Typical usage:
|
|
|
|
.RS
|
|
|
|
xauth add :0 . `mcookie`
|
|
|
|
.RE
|
2006-12-06 17:25:33 -06:00
|
|
|
.PP
|
|
|
|
The "random" number generated is actually the output of the MD5 message
|
2014-03-08 15:43:26 -06:00
|
|
|
digest fed with random information from one of the sources
|
2006-12-06 17:25:37 -06:00
|
|
|
.IR /dev/urandom ,
|
2014-03-08 15:43:26 -06:00
|
|
|
.IR /dev/random ,
|
|
|
|
or
|
|
|
|
.I "libc pseudo-random functions"
|
|
|
|
in this preference order.
|
2011-06-11 10:44:12 -05:00
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
|
|
|
\fB\-f\fR, \fB\-\-file\fR=\fIFILE\fR
|
2014-03-08 15:43:26 -06:00
|
|
|
Use additional file as a macig cookie random seed. When file is defined
|
|
|
|
as '-' character input is read from stdin.
|
2011-06-11 10:44:12 -05:00
|
|
|
.TP
|
|
|
|
\fB\-v\fR, \fB\-\-verbose\fR
|
2014-03-08 15:43:26 -06:00
|
|
|
Inform where randomness originated, with amount of entropy read from each
|
|
|
|
source.
|
2011-06-11 10:44:12 -05:00
|
|
|
.TP
|
|
|
|
\fB\-V\fR, \fB\-\-version\fR
|
2013-10-14 14:34:39 -05:00
|
|
|
Display version information and exit.
|
2011-06-11 10:44:12 -05:00
|
|
|
.TP
|
|
|
|
\fB\-h\fR, \fB\-\-help\fR
|
2013-10-14 14:34:39 -05:00
|
|
|
Display help text and exit.
|
2006-12-06 17:25:33 -06:00
|
|
|
.SH BUGS
|
2014-03-08 15:43:26 -06:00
|
|
|
It is assumed that none of the randomness sources will block.
|
2006-12-06 17:25:33 -06:00
|
|
|
.SH FILES
|
|
|
|
.I /dev/urandom
|
|
|
|
.br
|
2014-03-08 15:43:26 -06:00
|
|
|
.I /dev/random
|
2006-12-06 17:25:32 -06:00
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR X (1),
|
2006-12-06 17:25:33 -06:00
|
|
|
.BR xauth (1),
|
2014-03-08 15:43:26 -06:00
|
|
|
.BR md5sum (1),
|
|
|
|
.BR rand (3)
|
2007-07-02 18:17:04 -05:00
|
|
|
.SH AVAILABILITY
|
2010-11-30 04:41:59 -06:00
|
|
|
The mcookie command is part of the util-linux package and is available from
|
2014-03-08 15:43:26 -06:00
|
|
|
.UR ftp://\:ftp.kernel.org\:/pub\:/linux\:/utils\:/util-linux/
|
|
|
|
Linux Kernel Archive
|
|
|
|
.UE .
|