AIX, Security, System Admin↑ Generating random passwords

When you set up a new user account, and assign a password to that account, you'll want to make sure that it is a password that can not be easily guessed. Setting the initial password to something easy like "changeme", only allows hackers easy access to your system.

So the best way you can do this, is by generating a fully random password. That can easily be achieved by using the /dev/urandom device.

Here's an easy command to generate a random password:

# dd if=/dev/urandom bs=16 count=1 2>/dev/null | openssl base64 | sed "s/[=O/\]//g" | cut -b1-8

This will create passwords like:

0 (0)
Article Rating (No Votes)
Rate this article
There are no attachments for this article.
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
Technology level update on AIX using smit_update and alt_disk_install method
Viewed 5057 times since Sun, Jun 30, 2019
HOWTO: Implement SEA Failover with Dual VIOS
Viewed 6812 times since Tue, Jun 4, 2019
AIX oslevel version OS
Viewed 4250 times since Wed, Apr 17, 2019
AIX Not all filesets for 6100-07_AIX_ML were found
Viewed 2433 times since Tue, Jul 17, 2018
How to install filesets/software in aix?
Viewed 5037 times since Mon, Jul 8, 2019
Top 4 Reasons for Node Reboot or Node Eviction in Real Application Cluster (RAC) Environment
Viewed 71890 times since Thu, Jun 21, 2018
bootlist multiple boot logical volume found
Viewed 2403 times since Tue, Apr 16, 2019
AIX: Remove existing disk
Viewed 2275 times since Sun, Jun 3, 2018
Script to download TL and SP for AIX using NIM and SUMA
Viewed 8479 times since Thu, Feb 21, 2019
AIX WIKIS developerworks
Viewed 1984 times since Sun, Jun 17, 2018