What is the password for jenkins user under MACOSX?

后端 未结 6 2050
攒了一身酷
攒了一身酷 2021-02-14 05:50

I\'m trying to create a CI for iOS (iPhone and iPad) using TestFlight, Jenkings, GitHub, Sonar... I downloaded the macosx jenkings package/wizard. It seems it created a user for

相关标签:
6条回答
  • 2021-02-14 06:11

    If I remember correctly, it's not set by default (empty).

    Read this article (how to change password in OS X from command line): http://osxdaily.com/2011/09/19/change-password-mac-os-x-10-7-lion-without-knowing-current-password/

    0 讨论(0)
  • 2021-02-14 06:12

    A Default password location is changed in the latest version of Jenkins.

    sudo cat /Users/Shared/Jenkins/Home/secrets/initialAdminPassword
    
    0 讨论(0)
  • 2021-02-14 06:15

    I always use sudo su jenkins - to work as the Jenkins user on the command line, this should also work on a Mac. Then you don't need the password at all.

    I don't have my MacBook with me to tests this now, but on my current linux server the jenkins user was created with shell /bin/false. I changed the shell in /etc/passwd to /bin/bash, after that I could login with su as the Jenkins user to setup ssh-keys, etc...

    0 讨论(0)
  • 2021-02-14 06:19

    You can find the initial password here /Users/{username}/.jenkins/secrets/initialAdminPassword

    0 讨论(0)
  • 2021-02-14 06:20
    cat /Users/[username]/.jenkins/secrets/initialAdminPassword
    
    0 讨论(0)
  • 2021-02-14 06:26

    No password is set by default for user jenkins. You need to set it up by executing sudo passwd jenkins

    0 讨论(0)
提交回复
热议问题