Unable to Reset Jenkins Admin Password

We are using Jenkins version 2.479.3, but the native admin password has been forgotten, and I need to reset it.

I tried following the instructions on this link:

As suggested in the guide, I modified the config.xml file inside the jenkins/ or $JENKINS_HOME directory, setting to false. However, after restarting the Jenkins service, the value is automatically reset to true.

Additionally, the Configure Global Security option is not visible under the Manage Jenkins → Security section.

Can you help me resolve this issue?

Perhaps the setting in config.xml is reset by CasC. If there is a jenkins.yaml file, try moving that aside and editing config.xml then.

There is no jenkins.yaml file in the jenkins which i have installed. Can you please provide the path of the jenkins.yaml ?