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
Install and configure GNU watch (gwatch) on AIX
Viewed 8761 times since Thu, Feb 21, 2019
Script to download TL and SP for AIX using NIM and SUMA
Viewed 10212 times since Thu, Feb 21, 2019
To do a quick check on the number of path present (does not mean all are Enabled] using for loop
Viewed 5044 times since Fri, Jun 8, 2018
AIX: How to manage network tuning parameters
Viewed 7250 times since Mon, Jun 11, 2018
Authenticate AIX using MS DC’s kerberos servers (Active Directory)
Viewed 2899 times since Thu, Feb 21, 2019
Software management in AIX
Viewed 7933 times since Mon, Jun 25, 2018
Restoring mksysb
Viewed 4569 times since Wed, May 30, 2018
SNAP
Viewed 2794 times since Mon, Sep 17, 2018
Configuration of AIX Fast Connect and SMBFS
Viewed 9818 times since Mon, Jun 18, 2018
AIX - How to get network speed and statistic of ethernet adapter in AIX
Viewed 16774 times since Fri, Jun 8, 2018