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 Use the Linux lsof Command
Viewed 11000 times since Sun, Jun 30, 2019
Part 3, Tuning swap space settings AIX7
Viewed 8775 times since Wed, Jun 19, 2019
Calculate hdisk READ / WRITE throughput (sequential IO) from AIX systems
Viewed 2426 times since Thu, Feb 21, 2019
How to Backup and Upgrade a Virtual I/O Server Part I
Viewed 4140 times since Wed, Jun 5, 2019
What is OS Watcher Utility and How to use it for Database Troubleshooting ?
Viewed 29483 times since Thu, Jun 21, 2018
10 AIX Commands to Add to Your Toolbox
Viewed 4096 times since Sat, May 19, 2018
How to build a NIM Server on AIX 6.1 from the Scratch :: Part 1
Viewed 4550 times since Thu, Nov 29, 2018
AIX Booting
Viewed 9927 times since Tue, Apr 16, 2019
Check connection (rsh or nimsh) between NIM server and LPAR
Viewed 9331 times since Thu, Feb 21, 2019
List of 10 Must Know Oracle Database Parameters for Database Administrator
Viewed 115399 times since Thu, Jun 21, 2018