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
0516-787 extendlv: Maximum allocation for logical volume error
Viewed 8708 times since Tue, Mar 12, 2019
Software management in AIX
Viewed 6748 times since Mon, Jun 25, 2018
AIX- Procedure to replace rootvg harddisk
Viewed 4391 times since Tue, Apr 16, 2019
AIX ODM for MPIO User Guide 09
Viewed 3876 times since Mon, Dec 31, 2018
HOWTO: Copy a filesystem on AIX
Viewed 2406 times since Mon, May 28, 2018
AIX Errpt - Diag - Alog
Viewed 3527 times since Wed, Mar 20, 2019
NTLMSSP, SPN and AIX CIFS
Viewed 8090 times since Fri, Jun 15, 2018
AIX lspath Missing path
Viewed 9645 times since Fri, Oct 5, 2018
AIX routing - How Do I Compare ODM with the Current Routing Table?
Viewed 2563 times since Mon, Jul 29, 2019
Mirroring the rootvg Volume Group for AIX 4.1/4.2
Viewed 3001 times since Mon, May 21, 2018