Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hack OS X master password with gentoo?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
fuchsmi
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jun 2003
Posts: 118

PostPosted: Thu Aug 12, 2004 5:18 pm    Post subject: hack OS X master password with gentoo? Reply with quote

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
View user's profile Send private message
teilo
Apprentice
Apprentice


Joined: 20 Jun 2003
Posts: 276
Location: Minneapolis, MN

PostPosted: Thu Aug 12, 2004 6:45 pm    Post subject: Reply with quote

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:
Code:
passwd root

and change roots password to whatever you like.

You can issue a reboot command after that.
_________________
Teilo who is called Teilo
Back to top
View user's profile Send private message
servobf
Apprentice
Apprentice


Joined: 03 Jun 2004
Posts: 160

PostPosted: Thu Aug 12, 2004 7:08 pm    Post subject: That's sillyness Reply with quote

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
View user's profile Send private message
teilo
Apprentice
Apprentice


Joined: 20 Jun 2003
Posts: 276
Location: Minneapolis, MN

PostPosted: Sat Aug 14, 2004 2:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
mugget
n00b
n00b


Joined: 05 Mar 2004
Posts: 54
Location: BrisVegas, Australia

PostPosted: Tue Sep 14, 2004 6:09 am    Post subject: Reply with quote

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. 8)

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 :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum