Friday, December 30, 2011

Mac OS X Single User Password Reset

The following procedure is more or less a back door into the Mac OS X operating system that will alow you to reset lost or forgotten Administrator passwords. This situation was presented me when a client had forgetten their User password and the Administrator password when I needed to install software on their Mac.

I encourage that you save your work and if possible make a backup prior to performing this procedure.

Note: I have confirmed this to work on Mac OS X 10.4. Please comment if you have been able to use this in other versions.

Firstly, make note of the username(s) you wish to reset. This can be found in System Preferences. You will need the Unix username which will not have any spaces. For example, if your Display Name on the Mac is John Smith, your username is likely to be johnsmith as configured by the Mac. Preferably make note of the main administrator account. Once you have reset this password, you can make other changes later.

Once you have made note of the username, reboot the computer.

On startup (about the time of the startup sound), press and hold Command+S

Once the system has booted in the Safe Mode or Single-User Mode, you need to enter a particular command shell. Enter the following:
sh /etc/rc
then press Enter.

You will now be able to reset any user account on this PC using the following command:
passwd , then press Enter.
After the passwd, enter the unix username for the user account that you wish to reset. You will be asked to enter the new password in twice to confirm the change.

Once the changes have been made, you can now reboot the system. Commands reboot or init 6 should initiate the reboot.

Remember, please leave a comment of your experiences below.

Monday, December 19, 2011

HP iLO Reset via Command Line

This is how you can signal a reset on the iLO interface when you have no access to the Web Interface or it is otherwise not responding.

If this article was helpful,  please let a comment below or even drop a donation.

By default you can access the controller via command line interfaces such as SSH.

To reset the controller via SSH:

  1. Connect to the controller via IP address using your chosen SSH client (use PuTTY for Windows)
  2. Login with an Administrator account (or an account with equivalent rights)
  3. At the command type
       cd /map1
    Press Enter
  4. Then type
    Press Enter
Resetting HP iLO via SSH Command Line

The iLO controller will begin to reset itself. Reseting the controller fixes a lot of hung-up issues and freezes on the interface. Also I recommend updating the firmware on the controller wherever possible. Firmware update do not require reboots or downtime which is especially good for servers.

FatMin - Reset HP ILO Via the Command Line