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
The new VIOS performance advisor tool part util
Viewed 3453 times since Tue, Jun 4, 2019
AIX Increase paging space logical volume size
Viewed 3085 times since Tue, Jul 17, 2018
Using Kerberos security with Server for NFS
Viewed 9847 times since Wed, Jun 27, 2018
Getting list users and groups in AIX
Viewed 3949 times since Mon, May 28, 2018
AIX hangs on boot? How to debug boot process on AIX systems
Viewed 11626 times since Thu, Feb 21, 2019
How to Backup and Upgrade a Virtual I/O Server Part I
Viewed 4755 times since Wed, Jun 5, 2019
IVM and VLAN Tagging
Viewed 10472 times since Mon, May 28, 2018
AIX HOW TO CLONE A ROOTVG USING ALTERNATE DISK INSTALLATION ALTER_DISK_COPY
Viewed 17442 times since Sun, Jun 30, 2019
Script to reset NIM state and deallocate resources
Viewed 2534 times since Thu, Feb 21, 2019
Topics: AIX, System Admin↑ Export and import PuTTY sessions
Viewed 3172 times since Fri, Apr 19, 2019