2.3 Do Not Specify Passwords in Command Line

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

When a command is executed on the command line, for example mysql -u admin - ppassword, the password may be visible in the user's shell/command history or in the process list.

NOTE: Nessus has not performed this check. Please review the benchmark to ensure target compliance.

Solution

Use -p without password and then enter the password when prompted, use a properly secured .my.cnf file, or store authentication information in encrypted format in .mylogin.cnf.

See Also

https://workbench.cisecurity.org/files/1623