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
Install and configure yum on AIX
Viewed 4866 times since Thu, Feb 21, 2019
SNAP in AIX
Viewed 11836 times since Mon, Sep 17, 2018
LVM: Shrink & extend a filesystem/volume
Viewed 2321 times since Sun, Jun 3, 2018
Configuration of AIX Fast Connect and SMBFS
Viewed 8782 times since Mon, Jun 18, 2018
Aix: How to assign a specific PVID
Viewed 7920 times since Fri, Feb 1, 2019
AIX TCP connection status
Viewed 17285 times since Mon, Jul 29, 2019
AIX- Procedure to replace rootvg harddisk
Viewed 4824 times since Tue, Apr 16, 2019
AIX: Configuring a network interface
Viewed 3842 times since Sat, Jun 2, 2018
HOWTO: Implement SEA Failover with Dual VIOS
Viewed 8121 times since Tue, Jun 4, 2019
How to start daemons at the system startup in AIX servers
Viewed 2643 times since Tue, Jun 18, 2019