Although we should never log in as the root user, there is the odd occasion when this might be necessary.
That's all well and good, but what happens if you have lost the root password and you just can't login without it? Well, the SliceManager has a handy 'Reset Root Password' feature for just such eventualities.
One example of why you would need to reset the root password is if you are locked out of your system (say by a configuration error in your SSH or iptables files) and you haven't yet created a privileged user.
In such cases, when you can't remember the root password, there is simply no way of accessing your Slice.
First thing is to log into the SliceManager where you will be faced with the default 'Slices' view:
As you can see, I have one 256 Slice named 'Slice1'.
Click on your slice name to access the slice summary and control panel:
Next, click the 'Rescue' link to access the Reset Password page:
Now click the 'Reset Root Password' button.
Note: This procedure will involve a reboot of the slice.
You will be sent back to the summary page where 'Running Action' shows 'password' in red - indicating the process is being completed.
It will also show you what the new password will be.
Once the procedure has been completed, you will be sent a confirmation email with a reminder of the new password.
I advise waiting for this email before you try and log in with the new password.
Once you get the email, click on the 'Console' tab in the SliceManager so you can log in and change the root password to one of your choosing.
Launch the console and log in as root with the new password.
To reset the password to one of your choosing simply enter the following command:
Enter your chosen password and then confirm it.
The whole procedure takes a couple of minutes at the most.
Losing your Slice root password can cause no end of issues if you have no other way of accessing your Slice.
Using the SliceManager, such eventualities are easily taken care of by clicking the 'Reset Root Password' link.