19
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Jenkinsで管理者権限をふっ飛ばした場合

Last updated at Posted at 2014-04-03

ちょっと試したくてインストールしてUIにセキュリティざるだから認証入れろやって言われた時に適当にいじるとなんか管理者がいなくなって何もできなくなって悲しい感じになることがある。あった。

$ vim /var/lib/jenkins/config.xml

config.xmlにこれ書く
authorizationStrategyの中身が吹っ飛んでるんでこれ書く(sho2010のところはユーザー名)

  <authorizationStrategy class="hudson.security.ProjectMatrixAuthorizationStrategy">
    <permission>hudson.model.Hudson.Administer:sho2010</permission>

  </authorizationStrategy>

追記 セキュリティ切っちゃう場合
https://wiki.jenkins-ci.org/display/JENKINS/Disable+security

19
18
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
19
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?