Mac Forums

Mac Forums (
-   OS X - Operating System (
-   -   Leopard Single-User Mode (

Phoenix 03-28-2008 11:17 AM

Leopard Single-User Mode
Is there some way to set a user to admin from single-user mode in Leopard. I made the mistake of turning off my admin account and don't want to have to redo it through the disk and I know you can do it in Tiger.

Needing help!!!

Soulwar 03-28-2008 11:41 AM

Have you tried just going to System Preferences-Accounts and select your account, then select "allow user to administer this computer"?

Phoenix 03-29-2008 01:04 AM

That would be a great idea that I have already tried except that little lock icon on the bottom is locked and I can't unlock cause I don't have an admin password, like I said

Dysfunction 03-29-2008 02:11 AM

edit: ack. didn't read it fully.

dscl . -append /Groups/admin GroupMembership <username>

Phoenix 03-29-2008 12:59 PM


Originally Posted by Dysfunction (Post 624178)
edit: ack. didn't read it fully.

dscl / -append /Groups/admin GroupMembership <username>

Huh? sorry slightly confused

Dysfunction 03-29-2008 01:46 PM

it's a command (that I typo'd and didn't catch oops), you have to (normally) be root or sudo it, but it should work in single user mode. Substitute <username> for the username you wish to make an admin. You could also probably enable the root account, log on as root and use the gui to promote your user to admin.

Like such.

mike-macbook-pro:~ mike$ id foo
uid=503(foo) gid=20(staff) groups=20(staff),98(_lpadmin),102(,103(,10 1(
mike-macbook-pro:~ mike$ sudo dscl . -append /Groups/admin GroupMembership foo
mike-macbook-pro:~ mike$ id foo
uid=503(foo) gid=20(staff) groups=20(staff),98(_lpadmin),102(,103(,80(admin),101(
mike-macbook-pro:~ mike$

Phoenix 03-30-2008 12:46 AM

Awesome thanks

All times are GMT -4. The time now is 09:53 PM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.