开发者

TeamCity Username / password

开发者 https://www.devze.com 2023-01-22 11:38 出处:网络
Hi I installed teamcity longtime ago, on my 开发者_StackOverflow中文版home computer. I am trying to re-use it again now, but I forgot the admin username and password

Hi I installed teamcity longtime ago, on my 开发者_StackOverflow中文版home computer. I am trying to re-use it again now, but I forgot the admin username and password Is there a default admin user name? and how can I get the password?

Thank


From TeamCity 8 you can log in as a super user and change the password that way. You just need to use an empty username and last occurrence of the "super user authentication token" found in the logs\teamcity-server.log file as your password.

Please see the following for more information:

  • TeamCity 8 - http://confluence.jetbrains.com/display/TCD8/Super+User
  • TeamCity 9 - http://confluence.jetbrains.com/display/TCD9/Super+User


Ok, so you've forgot username and password in your teamcity instance.
How to reset password: described here.
How to get username:

  • go to the teamcity data directory
  • open config\database.properties file
  • there is connectionUrl property which points out to database which stores some teamcity settings
  • take a look at users table

Update

After you get the user name you can reset reset its password via the following(copied from linked answer):

  • Open a command prompt and go to \webapps\ROOT\WEB-INF\lib folder
  • Run the following: ..\..\..\..\jre\bin\java.exe -cp server.jar;common-api.jar;commons-codec-1.3.jar;util.jar;hsqldb.jar ChangePassword username newpassword


FYI, don't follow the advice of going through the users table. TeamCity is a quality product, so all passwords are salted/hashed (TC 9 below):

mysql [teamcity]> SELECT id,  password FROM users;
+-----+---------------------------------------------------+
|  id | password                                          |
+-----+---------------------------------------------------+
|  21 | k9d9yuE13FtQm8eT:1e24ad492777f94dec0c905127d1ea48 |
|  13 | m1l79Yy03hjoxKdA:199d1ea48e28a78bafde576dd88e6de7 |
|  85 | gOBpYHipOrtEGbUx:88f234847c07085798f9a4f8726e39df |
+-----+---------------------------------------------------+
0

精彩评论

暂无评论...
验证码 换一张
取 消