This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Lost All Passwords - TIP

I couldn't log on to my newly installed and configured ASL7, always getting incorrect user/password on webadmin
even console login as loginuser and/or root didn't work. Being too lazy to reinstall and re-configure again, I decided to try the 'reset password' way, which already worked on ASL6. Since I never found a similar way to reset passwords for a completely locked ASL, here's the howto:

[LIST=1]
  • download Gentoo 2007.0 Minimal CD/InstallCD related to your Astaro's architecture from http://www.gentoo.org/main/en/where.xml
     and burn your ISO to CD (other distros should work as well)
  • boot you locked Astaro from above burned CD
  • mount the Astaro's root partition to /mnt/gentoo
    type 
    mount LABEL=root /mnt/gentoo

  • chroot into your Astaro's root
    type 
    chroot /mnt/gentoo /bin/bash

  • reset password of root
    type 
    passwd

  • reset password of loginuser
    passwd loginuser

  • exit chroot 
    type 
    exit

  • unmount Astaro's root and reboot
    type 
    umount /mnt/gentoo && reboot

    (don't forget to remove the CD)
[/LIST]

if you know an easier way, suggestions are welcome


Afterwards you can reset the webadmin's password:
[LIST=2]
  •  login to your astaro via console
  •  type 
    cc
     enter
    following should appear:
    Confd command-line client.  Maintainer: 
    
    $Id: confd-client.pl,v 1.107.2.2 2007/06/12 13:59:46 daniel Exp $

    Undefined value assigned to typeglob at (eval 77) line 15,  line 17.
    Warning [/etc/inputrc line 17]:
      Invalid variable `term'
    Available modes: MAIN OBJS RAW. Type mode name to switch mode.
    Typing 'help' will always give some help.


  •  type 
    RAW
     enter
    following should appear:
    Switched to RAW mode.

  •  type 
    system_password_reset
     enter
    following should appear:
    calling $self->Connection()->system_password_reset;
    
    1

  •  type 
    Ctrl c
     enter
  •  browse to you astaro's webadmin page (https://:4444)
  •  set the new admin password and confirm
  •  now you can login as admin with the new password again
  •  since the above resets passwords for webadmin AND loginuser AND root, don't forget to reset their passwords as well via Management >> System Settings >> Shell Access
  • [/LIST]


This thread was automatically locked due to age.
Parents Reply Children
No Data