Help please - Admin privilege issue with Jenkins on Windows

148 views
Skip to first unread message

Shajimon Paremmal

unread,
Jul 23, 2015, 8:28:59 AM7/23/15
to Jenkins Users
Hi, 
I'm new to Jenkins and am trying to configure Jenkins on Windows to learn the basics.
I have added a user and given **all permissions** to him, as described in the documentation. 

When I restart the service and log in again with that username, the system does not allow configure privileges (doesn't allow even restart privilege) saying that the user does not have privileges or permissions.

How can I resolve this? Any help would be appreciated.

The config.xml says that the user has all permissions. Please see the relevant section below;

<authorizationStrategy class="hudson.security.GlobalMatrixAuthorizationStrategy">
    <permission>com.cloudbees.plugins.credentials.CredentialsProvider.Create:Test</permission>
    <permission>com.cloudbees.plugins.credentials.CredentialsProvider.Delete:Test</permission>
    <permission>com.cloudbees.plugins.credentials.CredentialsProvider.ManageDomains:Test</permission>
    <permission>com.cloudbees.plugins.credentials.CredentialsProvider.Update:Test</permission>
    <permission>com.cloudbees.plugins.credentials.CredentialsProvider.View:Test</permission>
    <permission>hudson.model.Computer.Build:Test</permission>
    <permission>hudson.model.Computer.Configure:Test</permission>
    <permission>hudson.model.Computer.Connect:Test</permission>
    <permission>hudson.model.Computer.Create:Test</permission>
    <permission>hudson.model.Computer.Delete:Test</permission>
    <permission>hudson.model.Computer.Disconnect:Test</permission>
    <permission>hudson.model.Hudson.Administer:Test</permission>
    <permission>hudson.model.Hudson.ConfigureUpdateCenter:Test</permission>
    <permission>hudson.model.Hudson.Read:Test</permission>
    <permission>hudson.model.Hudson.Read:anonymous</permission>
    <permission>hudson.model.Hudson.RunScripts:Test</permission>
    <permission>hudson.model.Hudson.UploadPlugins:Test</permission>
    <permission>hudson.model.Item.Build:Test</permission>
    <permission>hudson.model.Item.Cancel:Test</permission>
    <permission>hudson.model.Item.Configure:Test</permission>
    <permission>hudson.model.Item.Create:Test</permission>
    <permission>hudson.model.Item.Delete:Test</permission>
    <permission>hudson.model.Item.Discover:Test</permission>
    <permission>hudson.model.Item.Read:Test</permission>
    <permission>hudson.model.Item.Workspace:Test</permission>
    <permission>hudson.model.Run.Delete:Test</permission>
    <permission>hudson.model.Run.Update:Test</permission>
    <permission>hudson.model.View.Configure:Test</permission>
    <permission>hudson.model.View.Create:Test</permission>
    <permission>hudson.model.View.Delete:Test</permission>
    <permission>hudson.model.View.Read:Test</permission>
  </authorizationStrategy>

Thanks,
Shaji

Daniel Beck

unread,
Jul 23, 2015, 8:41:11 AM7/23/15
to jenkins...@googlegroups.com

On 23.07.2015, at 14:28, Shajimon Paremmal <shajip...@gmail.com> wrote:

> When I restart the service and log in again with that username

Is it actually the same user name? It may be case-sensitive. If you use e.g. Active Directory, you'll be able to log in any case combination, but permissions may only be granted to the exact name configured in Jenkins.

Shaji

unread,
Jul 23, 2015, 9:12:22 AM7/23/15
to jenkins...@googlegroups.com
Thanks for the reply, Daniel.

It is the same user name and I used it exactly as I gave it.
I even tried reinstalling Jenkins several times but the problem persists.


--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/RkR8WwaEMVY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/4581BB7B-59CB-4101-AF02-3C5B6DFABB7F%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.



--
Thanks,
Shaji.

Shajimon Paremmal

unread,
Jul 23, 2015, 5:56:32 PM7/23/15
to Jenkins Users
Hi, anyone has a clue about what could be causing the issue and what would be the solution?

Shaji

unread,
Jul 24, 2015, 4:43:57 AM7/24/15
to jenkins...@googlegroups.com
even the system restart doesn't work. What could be going wrong?
In the new Jnkins version, I can't see the page for assigning admin privileges to the user.

On Thu, Jul 23, 2015 at 10:56 PM, Shajimon Paremmal <shajip...@gmail.com> wrote:
Hi, anyone has a clue about what could be causing the issue and what would be the solution?
--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/RkR8WwaEMVY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Thanks,
Shaji.

Musaffir Lp

unread,
Jul 28, 2015, 11:13:31 PM7/28/15
to Jenkins Users, shajip...@gmail.com
Are you facing this with the latest jenkins version 1.622 ?
I am experiencing the same here

After restart of jenkins server, the access permissions set for a user seems to getting revoked.
Not sure whats wrong 

Musaffir Lp

unread,
Jul 29, 2015, 3:25:18 AM7/29/15
to Jenkins Users, shajip...@gmail.com, musaf...@gmail.com
Hey,

Is your user id contains camel case letters  .... i.e both capital and small letters ..some thing like - Userid
instead of it use only small letters user id ....some thing like --  userid

this will resolve your problem of permission getting revoked after a jenkins restart...
Reply all
Reply to author
Forward
0 new messages