Locked out of your Elgg site? This can help.: Revision

If you run Elgg where the "Lost password" feature fails (e.g. localhost with no mail-sending abililty), you may need to break into the system.

Here are a couple options to do that.

The first script only works for N seconds after it's been touch()ed on the server, and requires you to enter info from the users DB table. This might be considered the "safer" of the two because it automatically disables itself, and requires secret info even while enabled.

The second script just auto-logs you in as the first admin on the system. You must disable this after use!