Admin Account Missing on My Mac?

Hey guys,

Apologies if im posting this in wrong forum.

For some reason my Mac has decided im no longer Admin, now only Standard account and cant make any changes.

No other user on my computer is an Admin so I have no way of changing my account back to Admin Status as when it comes up with enter name and password window it doesnt accept my usual name and password.

Please if anyone could help!!

#478906

Phunky -

When you goto System Preferences/Accounts, there is only one Account (you) and it is not Admin?

#478908

Well, theres my mums aswell, but she is only standard to.

But correct, my account which is usually Admin is now Standard, so there isnt actually an Admin account anymore which means nothing can get changed.

Tearing my hair out here trying to fix it.

#478909

EDIT : Hang on i'm translating the fix. Leopard question not needed anymore

EDIT 2 : Here it is

Login into Single-User mode (Apple-S while booting I think)

BEWARE YOU ARE IN QWERTY if you don't have an US keyboard. So if you haven't got an Qwerty keyboard, you can try printing an picture of it so you get the keymap.

Do the following commands (remplace yourusername by OSX's short user name (if you don't know it, it is your home directory name, since it can't have any spaces) .

1. fsck -fy

2. mount -uw /

3. nicl -raw /var/db/netinfo/local.nidb -merge /groups/admin users yourusername

4. reboot

If you have got an message saying "invalid path", do (Repeat Steps 1. and 2.):

1. nicl -raw /var/db/netinfo/local.nidb -create /groups/admin gid 80

2. nicl -raw /var/db/netinfo/local.nidb -create /groups/admin passwd '*'

3. nicl -raw /var/db/netinfo/local.nidb -merge /groups/admin users yourusername

4. reboot

ANOTHER WAY TO DO IT :

Reboot in Single-User mode.

Type the following commands :

1. mount -uw /

2. passwd root (then type your password, NOTE : IT WILL ENABLE ROOT ACCOUNT UNDER OS X (usually you use sudo), AND I DON'T KNOW HOW TO DISABLE IT.

3. passwd yourusername (type your password, NOT THE SAME AS ROOT ONE FOR SECURITY, of course, remplace yourusername by you know what)

Don't worry (I don't know if you ever used a Terminal so I make this as easy as possible) if when you type your password, nothing appears, it's for security. To abort the command, just press Control-C.

4. shutdown -r now

Now start your computer into "normal" OS X. Get to the login window (if you have auto login, maybe you can enable it in Accounts menu, if you can't unlock the lock, youre screwed and you need to use method 1), then click "Other ...", you should be where you can login using a custom user name and password.

Fill it with User Name = root

You need to put the password you provided to "passwd root".

Press Log In.

You should get your favourite OS X desktop with full administrator rights.

Now you can do whatever you want using the preference panel.

ANY GUI LOGIN AS ROOT MUST REMAIN EXCEPTIONNAL ;)

EDIT 3 : Seems that the installer breaks the account settings ;) Report the bug if you want.

EDIT 4 : Fixed the typos, I think i'm going to sumbit that to the wiki

#478911

Yep, Upgraded to Leopard, so im not sure if it happened straight after as have only just noticed.

[[EDIT]]

Thankyou Dream. Im going to give that a bash now. Apologies for double post but wanted you to see my gratitude lol. Hopefully this will work.

#478915

No problem :)

#478916

Hey,

Really need help now! Have never used Terminal before so the whole thing is daunting.

Do I need to wait for text to load up after doing each step?

As I went from step 1 - 4 on the first method and after typing reboot nothing seemed to happen.

#478919

Have you rebooted under Single User mode ?

Don't type that in the classic terminal.

Reboot into Single User mode (press command S on at boot if you have an intel mac, if you havent, google for "mac single user" plus your mac type (G5,G4 etc ...) , you should not get ANY gui.

Just white text on black background.

There you can type the commands.

Page added to wiki (visit Fix_Admin_account_after_upgrading_to_Leopard), can't figure out how to add comments to the Talk page ><

#478920

Yeah I started up using Single user mode.

After I tyed

fsck -fy

just get lines of text, none of which I really understand.

#478921

Oh sorry ! reboot isn't the command.

the shutdown one from the second tutorial is the right one :)

#478922

ok ill give it another whirl now, so before I do, Do i just type :

fsck -fy ( then enter )

Wait for it all to load, then :

mount -uw / (enter )

nicl -raw /var/db/netinfo/local.nidb -merge /groups/admin users yourusername [enter]

restart (enter)

?

#478923

do you have msn ? catch me on mine (butterfly icon on my profile).

Or dreamteam69@mac.com (on iChat), I'm there for 2-3 hours so MSN would prevent spamming the board.

But yes, this should do it. (Corrected my post, just remplace restart by shutdown -r now :) )

#478924

Hey, currently typing on my Touch. I really couldn't get the single user mode method to work properly so I am trying to fix problem by rebooting Mac from the disc and reinstalling Leopard. Hopefully will fix it, if not I'm going to have to try the method again so will add you. Thanks greatly for this help, still kind of new to Macs so all this is new to me.

#478933

Archive & Install worked flawlessy on my install.

The touch is handy when you need internet when your comp is K.O. xP

#478937