How do I Enable Root User without Netinfo Manager?

Discussion in 'macOS' started by CavemanUK, Oct 29, 2007.

  1. CavemanUK macrumors 6502

    CavemanUK

    Joined:
    Jun 29, 2006
    Location:
    Rhyl, North Wales
    #1
    Hi,

    I need to enable root access so i can login as super user in terminal but i have no clue how you do it in leopard. In tiger you used netinfo manager which is now gone!

    help!
     
  2. Phil A. Moderator

    Phil A.

    Staff Member

    Joined:
    Apr 2, 2006
    Location:
    Shropshire, UK
    #2
    I'd recommend you don't do it. If you want root shell access just use the following command as an admin user:
    sudo bash

    and enter your password
     
  3. CavemanUK thread starter macrumors 6502

    CavemanUK

    Joined:
    Jun 29, 2006
    Location:
    Rhyl, North Wales
    #3
    Thanks, I need it because I need to compile a driver for my HP Printer.
     
  4. petvas macrumors 601

    petvas

    Joined:
    Jul 20, 2006
    Location:
    Mannheim, Germany
    #4
    You can find most of the options of Netinfo Manager if you go to System Preferences-User Accounts. Right click on the photo of your account. A menu will appear (Advanced). Click on it and you will see options for your account. I didnt see the option for root but you can change shell, add aliases, etc
     
  5. yellow Moderator emeritus

    yellow

    Joined:
    Oct 21, 2003
    Location:
    Portland, OR
    #5
    I too want to enable root. This seems odd to completely take away the NetInfo gui. I can't find any vestiges of it.. Was it abandoned? Frankly, I don't want Apple to attempt to protect me from myself.. where is root enabled?

    I should also note.. that this doesn't exist when I try it. Sure this wasn't from a pre-release build?
     
  6. mauldus macrumors newbie

    Joined:
    Jun 27, 2007
    #6
    I'm in the same boat. I need root to run some daemons for development constantly and typing the password is driving me crazy.

    Look under Directory Utility in the Edit menu. They moved it on us.

    Keep it secret. Keep it safe.
     
  7. yellow Moderator emeritus

    yellow

    Joined:
    Oct 21, 2003
    Location:
    Portland, OR
    #7
    http://docs.info.apple.com/article.html?artnum=306494

     
  8. papplegate macrumors member

    Joined:
    Jul 23, 2002
    Location:
    Cincinnati, OH
    #8
    From Macosxhints.....
    Open Directory Utility located in Application » Utilities. You may have to unlock Directory Utility to make changes. Once it's unlocked, go to Edit » Enable Root User, and then type in a password for your root user.

    Voila, you can now use the root user, and the 'Other Users' option now shows up on the login window.
     
  9. petvas macrumors 601

    petvas

    Joined:
    Jul 20, 2006
    Location:
    Mannheim, Germany
    #9
    Did you first unlock the GUI to allow changes? Unlock first and then right click on the picture of your account and you will get the options
     
  10. mauldus macrumors newbie

    Joined:
    Jun 27, 2007
    #10
    As a side note... you can also use "sudo bash" to get a perpetual root environment.
     
  11. Billy Boo Bob macrumors 6502

    Billy Boo Bob

    Joined:
    Jun 6, 2005
    Location:
    Dark Side Of The Moon
    #11
    Enable root... the easy way...

    It's easy to enable root, in Tiger or in Leopard, just with terminal. I've detailed it out maybe a bit more than you may need, but I just wanted to make it clear to anyone that's not exactly sure.

    -- First, you can enter your sudo admin password so that it's valid for a few minutes (of course, don't enter the "%". This just shows where you have command-line)

    "--" & italics denotes my comment.

    -- Bold = what you type.
    -- Blue = text that computer replies to you.

    % sudo -v
    Password: <enter your admin password here>

    -- Now you're back to your normal user prompt. Type in:
    % sudo passwd root
    Changing password for root.
    New password:
    <enter your new root password here>
    Retype new password: <enter the new root pass again>

    -- Now you're back to your normal prompt. Type in:
    % su -
    Password: <type in your new root password here to enter as root>
    YourSystem:~ root# -- now you're in

    Another neat trick, too... Once you have your root password set, you can enter the Finder with root access... With Fast User Switching on (or if you log out), bring up the Login Window, then use the button for "Other...". Enter "root" as the username, with your new root password and you'll have a GUI desktop for "Administrator", which is really your root user. If you go into Terminal there you're already in as root... no need for "su -" and pass.

    BE Careful: If you create / edit text files (or config files) with TextEdit (or probably any other app), it will be saved as owned by root (-rw-r--r--@ 1 root), and you probably won't be able to edit it again in your normal user GUI. But, it can be powerful... You can edit some of the system files in TextEdit that are already owned by root without having to screw around with pico/nano.

    Again, be careful what you do in there... You have mucho power... but you can make a mess, too.

    [Edit]
    Heh. That one got by me as I read through here. Nice addition... So... "Or you can do that, too." :)
     

Share This Page