[ic] resetting admin password

Kevin Walsh interchange-users@icdevgroup.org
Thu Jan 2 14:05:01 2003


mike karthauser [mikek@brightstorm.co.uk] wrote:
> 
> I am having a bad day having forgot the admin password for one of my live
> stores. 
> 
> Is there a way i can reset the password or create another account via
> commandline access?
> 
> I can get to the server, all databases etc. I looked at access.asc but the
> password is encrypted - anyway to deincript?
> 
Try this:

  * Create a new encrypted password with this sort of thing:

        perl -e 'print crypt("newpassword",rand(100)) . "\n"'

  * Copy the new encrypted password for use in a moment.

  * Change to your products directory and backup your access.asc
    file - just in case.

  * Edit the access.asc file using a text editor such as vi.

  * Locate the old encrypted password and replace with the new one
    you copied earlier, while being careful to maintain the file's
    format: Tab-separated values, no nasty MSDOS or Mac line endings
    etc.

Obviously, you will need to be logged in as a user who has permission
to edit the access.asc file.

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin@cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/