Create random password using /dev/urandom
Tutorial Information
|
Name: |
Create random password using /dev/urandom |
Submitter: |
NickTheGreek |
Category: |
IPS Tutorials |
|
Submitted: |
13 Nov 2014 |
Updated: |
13 Nov 2014 |
Views: |
431 |
Rating: |
This tutorial is unrated. |
|
|
|
Description: In many situation administrators are affronted to generate passwords, however it¢s more secure to keep in eyes random password even that ordinary one. |
Tutorial Instructions
|
In many situation administrators are affronted to generate passwords, however it¢s more secure to keep in eyes random password even that ordinarie one. Well, for such use let¢s keep it simple and let¢s define some files:
/dev/random: is a special file that serves as a true random number generator or as a pseudorandom number generator. /dev/urandom: (“unlocked” random source) which reuses the internal pool to produce more pseudo-random bits.
If your system does not have /dev/random and /dev/urandom created already, they can be created with the following commands:
CODE $ mknod -m 644 /dev/random c 1 8 $ mknod -m 644 /dev/urandom c 1 9 $ chown root:root /dev/random /dev/urandom
CODE $ tr -cd a-zA-Z0-9 < /dev/urandom | head -c 12; echo ""
|
Comments
|
There have been no comments made as of yet. Why not be the first?
|