MCOOKIE(1) | User Commands | MCOOKIE(1) |
mcookie - generate magic cookies for xauth
mcookie [options]
mcookie generates a 128-bit random hexadecimal number for use with the X authority system. Typical usage:
The "random" number generated is actually the MD5 message digest of random information coming from one of the sources getrandom() system call, /dev/urandom, /dev/random, or the libc pseudo-random functions, in this preference order. See also the option --file.
It is assumed that none of the randomness sources will block.
/dev/urandom
/dev/random
The mcookie command is part of the util-linux package and is available from Linux Kernel Archive.
December 2014 | util-linux |