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
Using splitvg in AIX to make a copy of a volume group
Viewed 10303 times since Mon, Jun 3, 2019
http://ibmsystemsmag.com/aix/administrator/backuprecovery/remote-sync/
Viewed 6377 times since Wed, May 30, 2018
Manually Editing /etc/filesystems Can Cause Issues
Viewed 7000 times since Tue, May 22, 2018
How to install filesets/software in aix?
Viewed 7894 times since Mon, Jul 8, 2019
Burn Image to DVD in AIX
Viewed 14592 times since Thu, Sep 20, 2018
AIX Commands Related to Boot and Init Process
Viewed 6406 times since Tue, Apr 16, 2019
How to set Kernel Parameters in AIX ?
Viewed 17371 times since Tue, Jul 2, 2019
Awesome Command to show top 15 processes using memory on AIX
Viewed 25230 times since Thu, Nov 29, 2018
AIX Replacing a failed disk (rootvg)
Viewed 10539 times since Tue, Jul 17, 2018
SSH Essentials: Working with SSH Servers, Clients, and Keys
Viewed 5984 times since Wed, Jun 27, 2018