The check_users_my_cnf Script

Valid for versions 82 through the latest version

Version:

82

Last modified: February 1, 2022


Overview

The /usr/local/cpanel/scripts/check_users_my_cnf script checks cPanel accounts for any invalid ~/.my.cnf files and renames them. This lets you view any settings in the invalid files that you may want to copy to new files. By default, the script checks all cPanel accounts. The script only returns output when it detects an invalid file.

Run the script

To run this script on the command line, use the following format:

/usr/local/cpanel/scripts/check_users_my_cnf [options]

Options

Use the following options with this script:

Options Description Example
--dryrun Run the script, but do not disable any invalid .my.cnf files. --dryrun
--perm-only Only perform a file permission and file ownership check. This option ignores whether the MySQL database is online. --perm-only
--user Run the script for a specific user. To run the script for multiple users, pass this option for each user. --user=username
--user=userA --user=userB
--verbose Run the script in verbose mode. --verbose
--help Display the script’s help documentation. --help

Additional Documentation