MCOOKIE(1) User Commands MCOOKIE(1)NAME
mcookie - generate magic cookies for xauth
SYNOPSIS
mcookie [options]
DESCRIPTION
mcookie generates a 128-bit random hexadecimal number for use with the X authority system. Typical usage:
xauth add :0 . `mcookie`
The "random" number generated is actually the output of the MD5 message digest fed with various pieces of random information: the current
time, the process id, the parent process id, and optionally the contents of an input file. and several bytes of information from the first
of the following devices which is present: /dev/random, /dev/urandom, files in /proc, /dev/audio.
OPTIONS -f, --file=FILE
Use file as a macig cookie seed. When file is defined as `-' character input is read from stdin.
-v, --verbose
Explain what is being done.
-V, --version
Output version information and exit.
-h, --help
Display this help and exit.
BUGS
The entropy in the generated 128-bit is probably quite small (and, therefore, vulnerable to attack) unless a non-pseudorandom number gener-
ator is used (e.g., /dev/random under Linux).
It is assumed that none of the devices opened will block.
FILES
/dev/random
/dev/urandom
/dev/audio
/proc/stat
/proc/loadavg
SEE ALSO X(1), xauth(1), md5sum(1)AVAILABILITY
The mcookie command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
util-linux June 2011 MCOOKIE(1)
Check Out this Related Man Page
MCOOKIE(1) Linux Programmer's Manual MCOOKIE(1)NAME
mcookie - generate magic cookies for xauth
SYNOPSIS
mcookie [-v] [-f filename]
DESCRIPTION
mcookie generates a 128-bit random hexadecimal number for use with the X authority system. Typical usage:
xauth add :0 . `mcookie`
The "random" number generated is actually the output of the MD5 message digest fed with various pieces of random information: the current
time, the process id, the parent process id, the contents of an input file (if -f is specified), and several bytes of information from the
first of the following devices which is present: /dev/random, /dev/urandom, files in /proc, /dev/audio.
BUGS
The entropy in the generated 128-bit is probably quite small (and, therefore, vulnerable to attack) unless a non-pseudorandom number gener-
ator is used (e.g., /dev/random under Linux).
It is assumed that none of the devices opened will block.
FILES
/dev/random
/dev/urandom
/dev/audio
/proc/stat
/proc/loadavg
SEE ALSO X(1), xauth(1), md5sum(1)AVAILABILITY
The mcookie command is part of the util-linux-ng package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.
25 September 1995 MCOOKIE(1)
Hi
I faced a problem while booting linux which is as follows;-
*************************************************
Inode 146180 has illegal block(s)
xauth:error in locking authority file /home/root/.Xauthority
Fatal Server Error:
Could not create lock file in /tmp/tXo-lock
... (1 Reply)
I belong on the 'UNIX for Dummies Questions' forum but I need to delete information on a sensitive SUN box. The company is going to use the box for a web server and I need to have the hard drives Completely clean!!!
One of the bosses 'friends' through out the term 13th level. And now it's the... (10 Replies)
I'm at a total loss how to attack this problem.
I have a file that contains
ab
What I need to do is if
1)if the string "ab" doesn't contain a newline, I need to insert one back into the buffer.
2)If the file contains two consecutive blank lines, skip over it.
Here is what I started
... (5 Replies)
Hi all,
I need some help with using sed/awk/other linux tools to meet the following goal:
I'm trying to take the output of /proc/net/dev:
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes ... (0 Replies)
Hi.
I need to migrate the whole unix environment from a Unix mp-ras 32 bit to a Linux Suse 64 bit.
1) can i use cpio to copy the data?
2) can i just copy the users from unix to linux or do i have to create them by hand
3) are there any other concerns i should worry about?
thanx (1 Reply)
I am building a UAV and building a computer control system. I am wanting to use a small linux disro (puppy, damn small) so that i need no drives except sd card reader. I am wondering if anyone knew of a flight control program or something that can be motified to work. The basics are that i am gonna... (0 Replies)
Hello, How do i check number of files currently opening in the linux server? Your help is highly appreciated. Thank you
---------- Post updated at 02:43 PM ---------- Previous update was at 02:19 PM ----------
never mind!! I got it.
---------- Post updated at 02:44 PM ---------- Previous... (3 Replies)
Is there a way to get $random to work in shell? If I don't include bourne shell ( !#/bin/sh ) My program works.... however, I need to include !#/bin/sh in order to display my program on the internet. (8 Replies)
I am setting this thread to this bsd forum, though it may fit into bash. But as using bsd and the terminal, I would like to generate a random sequence of alphanumerical digits, such as I use to do so on linux by typing just
mcookiethis one gives me a pretty random password, but it does not on bsd... (0 Replies)
Hi
I'm running the following command to generate a random password in a KSH script on a RHEL Linux VM but for some reason the cmd is not being closed and it's causing problems on the host.
PASSWORD="$(cat /dev/urandom | tr -dc "a-zA-Z0-9" | fold -w 16 | head -1)Aa0!"
The code worked as... (2 Replies)