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
Migrating from SDDPCM to AIXPCM (the easy way)
Viewed 3139 times since Mon, Jun 3, 2019
Kerberos, Active Directory and AIX
Viewed 7013 times since Mon, Jun 25, 2018
AIX Health Check basic
Viewed 5440 times since Fri, Jun 8, 2018
ILMT Procedure - ILMT / TAD4D / SUA / BFI
Viewed 10782 times since Fri, Jul 5, 2019
Do you Know These 5 Use of V$session View ?
Viewed 155174 times since Thu, Jun 21, 2018
This document discusses a new feature implemented for JFS2 filesystems to prevent simultaneous mounting.
Viewed 3312 times since Sat, Jun 1, 2019
Configuration of AIX Fast Connect and SMBFS
Viewed 9262 times since Mon, Jun 18, 2018
Recovery AIX system when hang on boot (554 code error).
Viewed 17673 times since Thu, Feb 21, 2019
AIX HA / HACMP, System Admin↑ Mountguard
Viewed 7935 times since Mon, Jun 3, 2019
Create a mksysb + SPOT using NIM (CLI)
Viewed 6115 times since Tue, Jul 17, 2018