如何重设Apache Archiva密码 [英] How to reset Apache Archiva Password
问题描述
我正在使用apache-archiva-2.2.0版本.我丢失了管理员密码,所以我想重设管理员用户的密码.
I am using apache-archiva-2.2.0 version. I lost the admin password so I want to reset the password of admin user.
我试图通过删除以下提到的文件来重置密码.
I tried to reset the password through remove the below mentioned files.
./apache-archiva-2.2.0/data/databases/users/dbex.lck
./apache-archiva-2.2.0/data/databases/users/db.lck
但是仍然要求在重新启动服务后输入密码.
But still it's asking for password post restart the service.
数据库详细信息-
<New id="users" class="org.eclipse.jetty.plus.jndi.Resource">
<Arg>jdbc/users</Arg>
<Arg>
<New class="org.apache.tomcat.jdbc.pool.DataSource">
<Set name="driverClassName">org.apache.derby.jdbc.EmbeddedDriver</Set>
<Set name="url">jdbc:derby:<SystemProperty name="appserver.base" default=".."/>/data/databases/users;create=true</Set>
<Set name="username">sa</Set>
<Set name="maxActive">20</Set>
<Set name="removeAbandoned">true</Set>
<Set name="logAbandoned">true</Set>
<Set name="initialSize">5</Set>
<Set name="testOnBorrow">true</Set>
<Set name="validationQuery">select 1</Set>
</New>
</Arg>
</New>
让我知道如何更改密码?
Let me know how can I change the password?
推荐答案
我已完成此操作,方法是停止归档,在data/databases/users
上删除用户数据库,例如
I've done this by stopping archiva, deleting the users database at data/databases/users
, e.g.,
% pwd
/home/archiva/current/data/databases
% mv users{,.old}
,然后再次启动存档.
and then starting archiva again.
Archiva将重建用户数据库,并为您提供在备份时创建新管理员用户的选项.
Archiva will rebuild the users database and offer you the option to create a new admin user when it is back up.
如果您想完全禁用密码过期,请按照 https://serverfault.com/a/840545
If you'd like to disable password expiration entirely, follow the steps at https://serverfault.com/a/840545
这篇关于如何重设Apache Archiva密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!