You don't have to upgrade Artifactory in order to reset the admin password,
but we strongly recommend that you do anyway :)
First off, you need to get hold of a security configuration file:
- If your instance of Artifactory is configured to perform backups (true
by default and if not, you may perform a data dump of Artifactory using the
"artadmin dump" command which only requires access to the server's
file-system - see:
http://wiki.jfrog.org/confluence/display/RTF20/The+artadmin+Command+Line+Tool),
you can find the "security.xml" file at the top backup directory.
Make a copy of this file, open up the file with a text editor, change the
admin's "password" field to <password>5f4dcc3b5aa765d61d8327deb882cf99</
password> (which is 'password' in hash) and keep it aside.
- Otherwise, If you do not mind losing all your security settings, you
may use the security.xml that's attached to this message.
To reset the password in conjunction with an upgrade:
1. Follow the steps described in the standard upgrade guide (
http://wiki.jfrog.org/confluence/display/RTF/Upgrading+Artifactory).
2. After a successful upgrade, take the modified\attached security
configuration file, place it in $ARTIFACTORY_HOME/etc, rename it to *
security.import.xml* and restart Artifactory.
To reset the password without performing and upgrade, simply take the
modified\attached security configuration file, place it in
$ARTIFACTORY_HOME/etc, make sure it is named *security.xml* and restart
Artifactory.
HTH,
Noam
On Wed, Aug 18, 2010 at 1:41 PM, mauricen <[email protected]>wrote:
>
> What's the best route to reset the admin password? I'm on version 2.0.6,
> but
> wouldn't mind upgrading.
>
> I know this question has been answered before -
> http://forums.jfrog.org/Forgot-the-admin-password-td4944789.html#a4944789-
> but that was about version 1.3.0, and I'm wondering if the current advice
> has changed from then.
> --
> View this message in context:
> http://forums.jfrog.org/Lost-admin-password-tp5435810p5435810.html
> Sent from the Artifactory - Users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
<?xml version='1.0' encoding='UTF-8'?>
<security version="v7">
<users>
<user>
<username>anonymous</username>
<password>d41d8cd98f00b204e9800998ecf8427e</password>
<admin>false</admin>
<enabled>true</enabled>
<updatableProfile>true</updatableProfile>
<accountNonExpired>true</accountNonExpired>
<credentialsNonExpired>true</credentialsNonExpired>
<accountNonLocked>true</accountNonLocked>
<transientUser>false</transientUser>
<groups/>
<lastLoginTimeMillis>0</lastLoginTimeMillis>
<lastAccessTimeMillis>0</lastAccessTimeMillis>
</user>
<user>
<username>admin</username>
<password>5f4dcc3b5aa765d61d8327deb882cf99</password>
<admin>true</admin>
<enabled>true</enabled>
<updatableProfile>true</updatableProfile>
<accountNonExpired>true</accountNonExpired>
<credentialsNonExpired>true</credentialsNonExpired>
<accountNonLocked>true</accountNonLocked>
<transientUser>false</transientUser>
<groups/>
<lastLoginTimeMillis>1270164647607</lastLoginTimeMillis>
<lastLoginClientIp>127.0.0.1</lastLoginClientIp>
<lastAccessTimeMillis>0</lastAccessTimeMillis>
</user>
</users>
<groups>
<group>
<groupName>readers</groupName>
<description>A group for read-only users</description>
<newUserDefault>true</newUserDefault>
</group>
</groups>
<acls>
<acl>
<permissionTarget>
<name>Any Remote</name>
<repoKeys>
<string>ANY REMOTE</string>
</repoKeys>
<includes>
<string>**</string>
</includes>
<excludes/>
</permissionTarget>
<aces>
<ace>
<principal>anonymous</principal>
<group>false</group>
<mask>3</mask>
</ace>
</aces>
<updatedBy>_system_</updatedBy>
</acl>
<acl>
<permissionTarget>
<name>Anything</name>
<repoKeys>
<string>ANY</string>
</repoKeys>
<includes>
<string>**</string>
</includes>
<excludes/>
</permissionTarget>
<aces>
<ace>
<principal>anonymous</principal>
<group>false</group>
<mask>1</mask>
</ace>
<ace>
<principal>readers</principal>
<group>true</group>
<mask>1</mask>
</ace>
</aces>
<updatedBy>_system_</updatedBy>
</acl>
</acls>
</security>------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users