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:

ej9yTaaD
Ux9FYusx
QR0TSAZC
...
0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
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
Undocumented AIX command lquerypv
Viewed 4271 times since Mon, Jul 16, 2018
AIX, Storage, System Admin Allocating shared storage to VIOS clients
Viewed 2789 times since Fri, Apr 19, 2019
Checking HBA status on AIX
Viewed 19306 times since Fri, Oct 5, 2018
AIX ODM for MPIO User Guide 09
Viewed 4693 times since Mon, Dec 31, 2018
Online Backups and Recovery in a Snap AIX
Viewed 5792 times since Wed, May 30, 2018
n a perfect world....rootvg would always reside on hdisk0
Viewed 2783 times since Thu, Jun 6, 2019
AIX: Remove existing disk
Viewed 3167 times since Sun, Jun 3, 2018
Using the AIX splitvg command
Viewed 4866 times since Mon, Jun 3, 2019
DISK OPERATION ERROR in AIX
Viewed 15277 times since Thu, Feb 21, 2019
AIX -- extending Logical Volumes online
Viewed 3289 times since Tue, Mar 12, 2019