OpenSource For You

Creating a user account with a random password using the shell script

- —Benedict Nicholas, benedictni­cholas@yahoo.com

After running the script, the newly generated password will be stored in the pass.log file.

Note: apg or Automated Password Generator is used for generating random passwords. Read the apg man page for details. Here is a simple shell script to create users in Linux with a random password. This uses apg to generate a password. If the package apg is not installed, install it by running the following command before running the script:

 ??  ??
 ??  ??
 ??  ??

Newspapers in English

Newspapers from India