This will allow you to gain access to your macbook
Step 1 of 6
Power on your iBook and press the "Command" and "S" keys at the same time as the computer boots. Cease holding the two buttons when you see a black computer screen appear with white text.
Step 2 of 6
Type "-uw/" and press "Enter." This will allow you to make changes to the hard drive.
Step 3 of 6
Type "Systemstarter" and press "Enter" to run "NetInfo" (this allows you to make changes to the user accounts on your iBook). A vast amount of messages will begin appearing on your screen. When you see the message "System started" appear, hit "Enter" to display a command prompt.
Step 4 of 6
Type "niutil -list . /users" and press "Enter." A list of the user accounts on your iBook will now appear.
Step 5 of 6
Find the name of the account you are wanting to use (most likely the administrator account) and type "passwd user --" (replace "user" with the name of the account you will be using). The command prompt will tell you twice that you are changing the password for the account you chose to change; therefore, enter the name of the account twice (ensure you are typing the name of the account correctly and the "Caps Lock" is off as you will not see what you are typing).
Step 6 of 6
Type "reboot" and press "Enter" to restart your iBook. The account you want to unlock will now be completely unlocked, allowing you to freely log into the account without any trouble whatsoever.