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
AIX, Security, System Admin↑ Clearing password history
Viewed 2738 times since Fri, Apr 19, 2019
Tips I Picked up at the Power Systems Technical University
Viewed 3131 times since Mon, Jun 11, 2018
AIX smtctl The smtctl command controls the enabling and disabling of processor simultaneous multithreading mode.
Viewed 15557 times since Fri, Jan 18, 2019
Unlock User ID in IBM AIX
Viewed 15800 times since Mon, May 28, 2018
AIX oslevel version OS
Viewed 5229 times since Wed, Apr 17, 2019
Migrating AIX User Environments
Viewed 2473 times since Wed, May 30, 2018
How To Mirror Your Root Disk On AIX (a.k.a. rootvg)
Viewed 6220 times since Mon, May 21, 2018
SNAP
Viewed 2263 times since Mon, Sep 17, 2018
Configuring an AIX client with multiple Kerberos realms
Viewed 9804 times since Mon, Jun 25, 2018
AIX Power replacing (hot-swap) failed disk in rootvg
Viewed 3958 times since Tue, Apr 16, 2019