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 0516-404 allocp: This system cannot fulfill the allocation
Viewed 4111 times since Thu, Sep 20, 2018
How to build a NIM Server on AIX 6.1 from the Scratch :: Part 1
Viewed 5848 times since Thu, Nov 29, 2018
List STALE partitions across Volume Groups for each Logical Volume in AIX
Viewed 3341 times since Tue, Jul 17, 2018
This document discusses a new feature implemented for JFS2 filesystems to prevent simultaneous mounting.
Viewed 3490 times since Sat, Jun 1, 2019
A Unix Utility You Should Know About: lsof
Viewed 2597 times since Tue, Apr 16, 2019
AIX Resolving "missing" or "removed" disks in AIX LVM
Viewed 5882 times since Tue, Aug 6, 2019
Writing a Custom PVID
Viewed 3612 times since Fri, Feb 1, 2019
Online Backups and Recovery in a Snap AIX
Viewed 6037 times since Wed, May 30, 2018
AIX LVM QUORUM mysteries revealed
Viewed 4121 times since Wed, May 22, 2019
0516-787 extendlv: Maximum allocation for logical volume error
Viewed 10145 times since Tue, Mar 12, 2019