Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have just set up fresh Jenkins machine. Before enabling security I could use java -jar jenkins-cli.jar -s http://localhost:8080 safe-restart.

Then I have enabled security and if I do java -jar jenkins-cli.jar -s http://localhost:8080 safe-restart --username user.name --password pass I get error hudson.security.AccessDeniedException2: anonymous is missing the Overall/Read permission

Strange thing is that if I run java -jar jenkins-cli.jar -s http://localhost:8080 help --username user.name --password pass everything is ok and I get help options.

I can restart jenkinks from web interface when I login with my username and password.

What seems to be the problem here.

I will edit this post to add security part of xml.

 <securityRealm class="hudson.security.LDAPSecurityRealm" plugin="ldap@1.8">
share|improve this question
what config.xml for security part looks like? –  Danila Ladner Jan 29 '14 at 14:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.