Benches macOS

9

rm /var/db/.applesetupdone not working pr…

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

Hello,

I bought a used MacBook Pro but there is a password preventing me from accessing any admin functions. There is no password set to login, however...I don't have the original install discs either, seller said they were "lost."

I looked up a tutorial that can set up a new admin account for you to use, but the terminal commands aren't working as described. I'm hoping someone here can help.

My process has been;

Boot into Single User Mode,

then typing: /sbin/mount -uw

then: rm /var/db/.applesetupdone

By my best understanding, this should remove that file and kick me into the Leopard Welcome screen. I watched a video in which it was done and it worked like a charm.

In my scenario, I am asked to "override root wheel" and given a y/n choice.

If I say no, nothing happens.

If I say yes, I am told that this is a "read-only file system."

I don't think my hard drive is set to be read only, any suggestions?

Message was edited by: Sed_P

9 replies

Sign in or join Beachball Help to reply.

  1. 0

    macwiz1220

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Your first command is wrong. It should be:

    *mount -uw /*

  2. 0

    macwiz1220

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    The combination
    root:wheel represents that the user
    root belongs to the group
    wheel.
    root is the account under which OS X runs under, as well as the kernel itself.
    root has no restrictions to any part of the system, and is the only user with direct access to hardware via the kernel, among other special permissions.

    wheel is a special group in UNIX for users who want to be able to
    su to
    root (
    su is a Terminal command that stands for *substitute user*). In OS X Leopard, being in the
    wheel group is no longer a requirement to
    su to
    root. Anyone in the
    admin group can now do so, as it takes the place of
    wheel in OS X. However,
    root is still added as a user of
    wheel.

    Running
    su allows someone to run a UNIX shell (in Terminal) as
    root.
    sudo (*substitute user do*) is similar, but it differs in that you can run commands with
    root privileges without actually being root.

    On a note, did you fix the issues with your Terminal command not working?

  3. 0

    macwiz1220

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Your first command is wrong. It should be:

    *mount -uw /*

  4. 0

    Sed_P

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    The difference is the "/", correct?

    Does that cause it to mount at the root level?

    Where does it mount without the "/" ?

  5. 0

    macwiz1220

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Yes, that is the difference.

    The
    / provides the drive with a mountpoint. Without one, the drive is mounting, but the system doesn't know where to access it.

  6. 0

    Sed_P

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Gotcha...

    So, this may seem like a noober question... because it is...

    But, what is a "root wheel" and how is it's owner group determined?

  7. 0

    macwiz1220

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    The combination
    root:wheel represents that the user
    root belongs to the group
    wheel.
    root is the account under which OS X runs under, as well as the kernel itself.
    root has no restrictions to any part of the system, and is the only user with direct access to hardware via the kernel, among other special permissions.

    wheel is a special group in UNIX for users who want to be able to
    su to
    root (
    su is a Terminal command that stands for *substitute user*). In OS X Leopard, being in the
    wheel group is no longer a requirement to
    su to
    root. Anyone in the
    admin group can now do so, as it takes the place of
    wheel in OS X. However,
    root is still added as a user of
    wheel.

    Running
    su allows someone to run a UNIX shell (in Terminal) as
    root.
    sudo (*substitute user do*) is similar, but it differs in that you can run commands with
    root privileges without actually being root.

    On a note, did you fix the issues with your Terminal command not working?

  8. 0

    Sed_P

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Yeah, you were totally right about not specifying the mount point for the hard drive....

    Worked perfectly after figuring that out....

  9. 0

    macwiz1220

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    No problem. Enjoy!