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
How to Configure Sendmail not to Look up MX records
Viewed 3352 times since Fri, Apr 19, 2019
How to set Kernel Parameters in AIX ?
Viewed 14334 times since Tue, Jul 2, 2019
7 Tips – Tuning Command Line History in Bash
Viewed 4887 times since Fri, Jul 5, 2019
ILMT Procedure - ILMT / TAD4D / SUA / BFI
Viewed 9930 times since Fri, Jul 5, 2019
Tips I Picked up at the Power Systems Technical University
Viewed 2596 times since Mon, Jun 11, 2018
Firmware Assisted Dump sysdump
Viewed 1794 times since Mon, Jul 16, 2018
SSH-COPY-ID on AIX. SSH remote AIX’s box without password
Viewed 16166 times since Thu, Feb 21, 2019
AIX FC Performance improvements for IBM AIX FC and FCoE device driver stacks
Viewed 5416 times since Fri, Jan 31, 2020
Do you Know These 5 Use of V$session View ?
Viewed 99459 times since Thu, Jun 21, 2018
AIX, System Admin↑ The chrctcp command
Viewed 2882 times since Fri, Apr 19, 2019