man-pages/man1/mcookie.1.html
2021-03-31 01:06:50 +01:00

136 lines
3.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of MCOOKIE</TITLE>
</HEAD><BODY>
<H1>MCOOKIE</H1>
Section: User Commands (1)<BR>Updated: December 2014<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
mcookie - generate magic cookies for xauth
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>mcookie</B>
[options]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<B>mcookie</B>
generates a 128-bit random hexadecimal number for use with the X authority
system. Typical usage:
<P>
<DL COMPACT><DT id="1"><DD>
<B>xauth add :0 . `mcookie`</B>
</DL>
<P>
The &quot;random&quot; number generated is actually the MD5 message
digest of random information coming from one of the sources
<I>getrandom</I>()
system call,
<I>/dev/urandom</I>,
<I>/dev/random</I>,
or the
<I>libc pseudo-random functions</I>,
in this preference order. See also the option <B>--file</B>.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<DL COMPACT>
<DT id="2"><B>-f</B>,<B> --file </B><I>file</I>
<DD>
Use this <I>file</I> as an additional source of randomness (for example /dev/urandom).
When <I>file</I> is '-', characters are read from standard input.
<DT id="3"><B>-m</B>,<B> --max-size </B><I>number</I>
<DD>
Read from <I>file</I> only this <I>number</I> of bytes.
This option is meant to be used when reading additional
randomness from a file or device.
<DT id="4"><DD>
The
<I>number</I>
argument may be followed by the multiplicative suffixes KiB=1024,
MiB=1024*1024, and so on for GiB, TiB, PiB, EiB, ZiB and YiB (the &quot;iB&quot; is
optional, e.g., &quot;K&quot; has the same meaning as &quot;KiB&quot;) or the suffixes
KB=1000, MB=1000*1000, and so on for GB, TB, PB, EB, ZB and YB.
<DT id="5"><B>-v</B>,<B> --verbose</B>
<DD>
Inform where randomness originated, with amount of entropy read from each
source.
<DT id="6"><B>-V</B>,<B> --version</B>
<DD>
Display version information and exit.
<DT id="7"><B>-h</B>,<B> --help</B>
<DD>
Display help text and exit.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>BUGS</H2>
It is assumed that none of the randomness sources will block.
<A NAME="lbAG">&nbsp;</A>
<H2>FILES</H2>
<I>/dev/urandom</I>
<BR>
<I>/dev/random</I>
<A NAME="lbAH">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?1+md5sum">md5sum</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?1+X">X</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?1+xauth">xauth</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?3+rand">rand</A></B>(3)
<A NAME="lbAI">&nbsp;</A>
<H2>AVAILABILITY</H2>
The mcookie command is part of the util-linux package and is available from
Linux Kernel Archive
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="8"><A HREF="#lbAB">NAME</A><DD>
<DT id="9"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="10"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="11"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="12"><A HREF="#lbAF">BUGS</A><DD>
<DT id="13"><A HREF="#lbAG">FILES</A><DD>
<DT id="14"><A HREF="#lbAH">SEE ALSO</A><DD>
<DT id="15"><A HREF="#lbAI">AVAILABILITY</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:19 GMT, March 31, 2021
</BODY>
</HTML>