On Thu, Aug 07, 2014 at 06:23:41PM +0700, Olivier Nicole wrote:
> A Dspace system have been dumped on my lap and now I am supposed to
> maintain it. I managed to crack the password of the wirtual host, then
> of the virtual host and I have a root shell access to the system where
> Dspace is running.
> 
> How can I reset the rot/admin password of the Dspace software?

Looking at the code, I think you should be able to run bin/dspace
create-administrator and have it over-write the password (and other
attributes) of the existing account, *if* you know which account is
admin.  You can find that out by looking in the database:

  SELECT EPerson WHERE eperson_id = 1

Look in config/dspace.cfg for properties named "db.something" for
particulars on the DBMS connection.

It's possible that the original administrator account (which is always
eperson_id = 1) was deleted at some point, but you can find all
members of the Administrator group:

  SELECT email, netid FROM EPerson
   WHERE eperson_id = (
     SELECT eperson_id FROM EPersonGroup2EPerson
      WHERE eperson_group_id = (
        SELECT eperson_group_id from EPersonGroup
         WHERE name = 'Administrator'
     )
   );

> Is there a way to dump/restore the full Dspace configuration and
> contents? I want to port the contents to a new system (the existing one
> is old, never get patched, I am not sure it has not been pirated).

Two ways:

o  Copy the contents of the assetstore(s) to the new machine; dump the
   database and load it on the new machine; start DSpace on the new
   machine.  This assumes that the old and new have compatible
   versions of DSpace and the DBMS.  Newer major versions of DSpace
   typically have database schema changes, so the best thing would be
   to install the same version on the new machine, get it loaded with
   content and running, and then upgrade.

o  On a sufficiently new version (1.7 or newer) of DSpace, export the
   entire repository to a set of AIPs:
   https://wiki.duraspace.org/display/DSDOC4x/AIP+Backup+and+Restore
   and then load them into the new machine.  This is meant to be much
   less sensitive to version skew.

If you would tell us what version you have now, and what version you
would like to be running, that would help us advise you.  Any other
environmental details, like the DBMS brand and version, would be
helpful too.

The documentation reference above is for DSpace version 4.
Documentation for all versions may be found through
https://wiki.duraspace.org/display/DSPACE/DSpaceResources#DSpaceResources-DSpaceSystemDocumentation
 .

There is much other good material on the wiki, and you can ask here about
anything that is unclear.

-- 
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu

Attachment: signature.asc
Description: Digital signature

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Dspace-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-general

Reply via email to