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
HOWTO: Implement SEA Failover with Dual VIOS
Viewed 7604 times since Tue, Jun 4, 2019
AIX Oracle tuning
Viewed 218877 times since Tue, Jul 2, 2019
NMON nmon
Viewed 11836 times since Tue, Apr 16, 2019
DISK OPERATION ERROR in AIX
Viewed 14037 times since Thu, Feb 21, 2019
vfcpmap on VIO Server
Viewed 9456 times since Tue, Jun 4, 2019
Setup private yum repository for AIX clients
Viewed 11117 times since Thu, Feb 21, 2019
AIX: How to set automatic logoff (only for terminals)
Viewed 3035 times since Mon, Jun 11, 2018
How to Configure Sendmail not to Look up MX records
Viewed 3589 times since Fri, Apr 19, 2019
AIX - How to shutdown or reboot
Viewed 5467 times since Fri, Jun 8, 2018
How To Mirror Your Root Disk On AIX (a.k.a. rootvg)
Viewed 5356 times since Mon, May 21, 2018