<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Linux / UNIX: Generating random password with mkpasswd</title> <atom:link href="http://www.cyberciti.biz/faq/generating-random-password/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/generating-random-password/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Aimon Bustardo</title><link>http://www.cyberciti.biz/faq/generating-random-password/#comment-60589</link> <dc:creator>Aimon Bustardo</dc:creator> <pubDate>Sat, 09 Jul 2011 03:32:24 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/generating-random-password/#comment-60589</guid> <description>This is wrong (At least for RHEL and CentOS). That will generate an unencrypted password and enter it into the passwd file. Correct command is:
usermod -p `makepasswd --char=20 --crypt-md5` username</description> <content:encoded><![CDATA[<p>This is wrong (At least for RHEL and CentOS). That will generate an unencrypted password and enter it into the passwd file. Correct command is:</p><p>usermod -p `makepasswd &#8211;char=20 &#8211;crypt-md5` username</p> ]]></content:encoded> </item> <item><title>By: tsolox</title><link>http://www.cyberciti.biz/faq/generating-random-password/#comment-54827</link> <dc:creator>tsolox</dc:creator> <pubDate>Tue, 11 Jan 2011 21:19:18 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/generating-random-password/#comment-54827</guid> <description>there is also `pwgen`</description> <content:encoded><![CDATA[<p>there is also `pwgen`</p> ]]></content:encoded> </item> <item><title>By: Dave</title><link>http://www.cyberciti.biz/faq/generating-random-password/#comment-43730</link> <dc:creator>Dave</dc:creator> <pubDate>Thu, 17 Sep 2009 15:26:18 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/generating-random-password/#comment-43730</guid> <description>Another handy way of generating random passwords is this:
&lt;code&gt;echo `&lt;/dev/urandom tr -dc A-Za-z0-9 &#124; head -c8`&lt;/code&gt;
Obviously, this can be tweaked to your liking by adding symbols to the list of allowed characters and changing the length of the generated password in the head options.  You can also use /dev/random if you want proper randomness but that does make it a whole lot slower.</description> <content:encoded><![CDATA[<p>Another handy way of generating random passwords is this:</p><p><code>echo `&lt;/dev/urandom tr -dc A-Za-z0-9 | head -c8`</code></p><p>Obviously, this can be tweaked to your liking by adding symbols to the list of allowed characters and changing the length of the generated password in the head options.  You can also use /dev/random if you want proper randomness but that does make it a whole lot slower.</p> ]]></content:encoded> </item> <item><title>By: Gen2ly</title><link>http://www.cyberciti.biz/faq/generating-random-password/#comment-43456</link> <dc:creator>Gen2ly</dc:creator> <pubDate>Fri, 28 Aug 2009 13:36:10 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/generating-random-password/#comment-43456</guid> <description>To generate a random password for a user, you can do:
usermod -p `mkpasswd --chars=20` username
Also there char should be chars.  Thanks for the tip.</description> <content:encoded><![CDATA[<p>To generate a random password for a user, you can do:</p><p>usermod -p `mkpasswd &#8211;chars=20` username</p><p>Also there char should be chars.  Thanks for the tip.</p> ]]></content:encoded> </item> <item><title>By: Slavko</title><link>http://www.cyberciti.biz/faq/generating-random-password/#comment-37004</link> <dc:creator>Slavko</dc:creator> <pubDate>Sun, 11 Nov 2007 12:27:37 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/generating-random-password/#comment-37004</guid> <description>&lt;code&gt;apt-get install makepasswd&lt;/code&gt;</description> <content:encoded><![CDATA[<p><code>apt-get install makepasswd</code></p> ]]></content:encoded> </item> </channel> </rss>
