View previous topic :: View next topic |
Author |
Message |
fuchsmi Tux's lil' helper
Joined: 11 Jun 2003 Posts: 118
|
Posted: Thu Aug 12, 2004 5:18 pm Post subject: hack OS X master password with gentoo? |
|
|
Hi!
I just upgraded from OS9 to OSX. Now I need the Password for the superuser.
Is it possible to boot the the PPC gentoo-livecd, mount the HFS+ volume and disable/set the password?
Michi |
|
Back to top |
|
|
teilo Apprentice
Joined: 20 Jun 2003 Posts: 276 Location: Minneapolis, MN
|
Posted: Thu Aug 12, 2004 6:45 pm Post subject: |
|
|
You are probably better off entering single user mode in OSX, which gives you root access to the machine at boot.
To do this: reboot the Mac. Hold down Command-S while the machine is booting. Wait for the single user mode to come up. You will be dumped at a localhost % prompt.
Enter the following commands:
Code: | /sbin/mount -uw /
/sbin/SystemStarter |
Wait for that to finish.
From there you can just do a:
and change roots password to whatever you like.
You can issue a reboot command after that. _________________ Teilo who is called Teilo |
|
Back to top |
|
|
servobf Apprentice
Joined: 03 Jun 2004 Posts: 160
|
Posted: Thu Aug 12, 2004 7:08 pm Post subject: That's sillyness |
|
|
Why not just do this:
Code: | user$ sudo su
password:(administer password)
root#passwd root
New Password:
Repeat New Password:
root#: |
the above is aproxamately what OSX spits back at you, I'm not in OSX, so I don't remember exactly.
It's the first thing I do after an install of OSX.
~Michael |
|
Back to top |
|
|
teilo Apprentice
Joined: 20 Jun 2003 Posts: 276 Location: Minneapolis, MN
|
Posted: Sat Aug 14, 2004 2:40 pm Post subject: |
|
|
Yes, that would also work, if he knows the administrative password. If he does not, then single-user mode is the easiest option. Perhaps I wrongly assumed that he did not have his administrative password.
The Panther boot CD also has a password resetting feature if you boot off of it. _________________ Teilo who is called Teilo |
|
Back to top |
|
|
mugget n00b
Joined: 05 Mar 2004 Posts: 54 Location: BrisVegas, Australia
|
Posted: Tue Sep 14, 2004 6:09 am Post subject: |
|
|
why wouldn't you just insert the OS X install disk, and reset the password?
or, if you can't do that, you could give this a shot:
Code: | sudo strings -8 /var/vm/swapfile0 |grep -A 4 -i longname |
you could try that from single user mode. OS X stores the password as plain text in the swap files, and i've tried this (while booted into OS X) and it works. of course you need the root password if you're actually booted into OS X, but as far as i can remember single user mode is the same as root? well, if so this should work.
and if the above doesn't yeild any password results, you could try changing the swapfile, so somehting like 'swapfile1' instead of 'swapfile0'. _________________ G'Day mate |
|
Back to top |
|
|
|