This error occurs often, even when the credentials we enter are correct. A quick fix is to reconfigure security options in the config.xml file. The Jenkins config.xml file holds all the information related to the security realm and the authorization strategy. This file is located in the /var/lib/jenkins directory. One thing you must know is that, by disabling the security any anonymous user can access your Jenkins.