Difference between revisions of "Password recovery for appliance How to guide"

From Swivel Knowledgebase
Jump to: navigation, search
 
(Prerequisites)
 
(2 intermediate revisions by 2 users not shown)
Line 10: Line 10:
 
= Prerequisites =
 
= Prerequisites =
  
Swivel Appliance 2.x
+
Swivel Appliance 2.x, 3.x, 4.x
  
  
Line 46: Line 46:
  
 
admin:x:0:0::/home/admin:/bin/bash
 
admin:x:0:0::/home/admin:/bin/bash
 
  
 
= Testing =
 
= Testing =
  
 
Login with the default username and password.
 
Login with the default username and password.

Latest revision as of 14:19, 20 August 2018


Overview

This document outlines how to reset the admin password back to factory defaults for a Swivel hardware or VM appliance.


Prerequisites

Swivel Appliance 2.x, 3.x, 4.x


Admin Console Password Reset Procedure using Sysresccd

This procedure can be used when the Webmin cannot be logged into.


Boot from sysrescue CD

See System Rescue CD


Mount file system

Mount the root partition. Note: If sda2 is not found then try sdb2 instead.

 mkdir /root/temp
 mount /dev/sda2 /root/temp
 export SHELL=/bin/bash
 chroot /root/temp

This will take you to a different prompt. Then run the following command:

 passwd admin

Type in the default password. You will be asked to confirm it.

Known Issues

When trying to the above step of "passwd admin" and you are present with the error "Unknown user 'admin'" then vi /etc/passwd and add the following line to the list:

admin:x:0:0::/home/admin:/bin/bash

Testing

Login with the default username and password.