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
  • Hi all,
    we have a system where a collegue has changed the name of the webadmin user but he did not remeber to what he has changed. 
    In all Backups that exist there is the wrong username.
    To the Console i have access va Root user (after reset of passwd).

    Has anyone an idea to reanimate the "admin" User ??

    thanks for any idea
    firebear
  • Did you try the 'cc' commands above?

    Barry
  • Hi BarryG,

    shure but the user Admin does not exist on this ASL and the Username of the new User is not known and after the cc command there is also no User Admin.

    Thanks
    Firebear
  • at the console, only loginuser & root exist.
  • Hi BarryG,

    shure but the user Admin does not exist on this ASL and the Username of the new User is not known and after the cc command there is also no User Admin.

    Thanks
    Firebear


    Although a bit late, future readers may benefit from this.  Reactivating the admin user can be achieved through the confd client.  Here are the commands:

    Post 7.400:
    cc
    
    OBJS
    role
    role
    REF_SuperadminRole
    members=['REF_DefaultSuperAdmin']
    w


    (note:no typo, role command is issued twice in a row)
    You will want to make sure to log into webadmin and alter the allowed users from there once complete.  

    Another Tip:
    short command to change admin password to P@ssw0rd!:
    cc passwd P@ssw0rd!