TeamCity Username / password

北战南征 提交于 2019-12-22 04:06:41

问题


Hi I installed teamcity longtime ago, on my 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


回答1:


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



回答2:


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



回答3:


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 |
+-----+---------------------------------------------------+


来源:https://stackoverflow.com/questions/4057891/teamcity-username-password

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!