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.


Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to