Is there a way to enable root user using terminal?

is there a way to enable root user using terminal? i've tried in directory app but its not letting me log in under root since repairing permissions

Hi
If all you're seeing is bash-3.2# you are logged in as root. Type exit followed by a return. What do you see now?
I think most of your questions could be answered with some judicious reading? Download as many admin manuals you can:
http://www.apple.com/server/macosx/resources/
Tony

Similar Messages

  • HT1528 How to enable root user using terminal for mac lion 10.7.5 (step by step)

    I been trying to find the terminal version of creating a root user since I don't know my admin password and want to delete that user.

    You don't need to enable the root user. Just change the password for the account.
    Forgot Your Account Password
    For Lion, Mountain Lion, or Mavericks
        Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
         When the menubar appears select Terminal from the Utilities menu.
         Enter resetpassword at the prompt and press RETURN. Follow
         instructions in the dialog window that will appear.
         Or see:
           Reset a Mac OS X 10.7 Lion Password
           OS X Mountain Lion- Reset a login password,
           OS X Mavericks- Solve password problems,
           OS X Lion- Apple ID can be used to reset your user account password.
    For Snow Leopard and earlier with installer DVD
         Mac OS X 10.6- If you forget your administrator password,
         OS X- Changing or resetting an account password (Snow Leopard and earlier).
    For Snow Leopard and earlier without installer DVD
        How to reset your Mac OS X password without an installer disc | MacYourself
        Reset OS X Password Without an OS X CD — Tech News and Analysis
        How To Create A New Administrator Account - Hack Mac

  • HT2254 is there a way to install mac widget using terminal command?

    Is there a way to download and install mac widget using ther terminal command instead of using widget manager?
    I need to install on a large number of macbooks, this will save me a lot of time...
    Thanks,
    HB

    I am not sure if defaults write will do the install:
    http://ss64.com/osx/defaults.html

  • My wife and I each have our own apple ID's which we use on our own iPhones and iPads. We share an iMac. Is there a way of enabling Facetime on the iMac to accept calls to either of our IDs without the need to login as that particular user?

    My wife and I each have our own apple ID's which we use on our own iPhones and iPads. We share an iMac. Is there a way of enabling Facetime on the iMac to accept calls to either of our IDs without the need to login as that particular user?

    no, when using facetime you log in with the apple id you want people to reach you at, so unless you both agree to share one apple id for all the facetime you do, it will be necessary for you to logout and login each time you use the application.

  • Cannot enable root user

    When I set up my user account last year when I got this computer, I am pretty sure I remember a shortname being filled in or suggested to me, and it had an uppercase character for its first letter. So, my short name is "Name" -- except, you know, instead of "Name" it's my first name.
    Anyway, I haven't had any issues until I installed 1Password. I'm having some trouble keeping it in sync, and ran a troubleshooting app as part of their guidance and I see that they say an issue is that my shortname contains an uppercase letter, when in fact it should be all lowercase.
    I find mixed reviews online of whether all lowercase in the short name is still a thing—I've found a few places that say uppercase letters were allowed in 10.6.8, but others say that it should be all lowercase and I need to change my shortname.
    I'd really rather not change it, but just to see how I would do it if I ended up having to, I checked out these instructions http://support.apple.com/kb/HT1428. I got hung up on enabling the root user, though, because I'm not able to select "Enable root user" from the edit menu. It's always grayed out.
    I then found this Apple doc on enabling the root user in Mountain Lion: http://support.apple.com/kb/PH11331?viewlocale=en_US but it's nothing different. "Enable root user" is still always grayed out in the edit menu.
    So... Is there no way I can enable the root user? I'm running 10.8.

    FWIW, enabling the root user account to change a user's shortname is taking a sledgehammer to put a tack in a wall to hang a picture. Better is to follow this:
    https://discussions.apple.com/docs/DOC-3872.
    I've not enabled the root user account since installing OS X in 2002 and I use the Terminal and the CLI routinely.

  • Enable Root User in Snow Leopard 10.6.6

    I read the exact same question in an earlier topic, but part of the answer doesn't make sense to me when I follow the instructions.
    The link to the 'answer' is here http://support.apple.com/kb/HT1528?viewlocale=en_US
    I understand it all, right up to step 9 where it says "Choose Enable Root User from the Edit menu."
    There is no Edit menu on the Directory utility window. There is a Services tab and a 'search policy' tab.
    There is a pencil, but no Menu, or anything that shows Edit.
    Can someone help me with this? I would include a screen shot, but I don't see any way to do that in this forum.
    TIA!

    Thanks, really new to Mac's, (2 days now) and I guess this is just another thing that's different...

  • Enable Root User by SSH

    Is there a way to enable the Root user on a 10.4.3 client remotely by ssh or ARD instead of starting up from the system CD and "changing password" ?
    Thanks.
    -david

    Just in case the intent is to login via ssh as root, please do not allow ssh for user root, unless you have an ironclad lockdown at your network perimeter and you also only allow connection by ssh key(s). Even then, there's just no need for it at all. Login as admin and then su root or simply: sudo su (which will require entering the admin password).
    I would kindly urge you to edit /etc/sshd_config
    (via: sudo nano (or vi or emacs if you prefer) ):
    #Protocol 2,1
    change to:
    Protocol 2
    #permit root login yes
    change to:
    permit root login no
    somewhere thereafter, add in:
    AllowUsers adminusername
    Where "adminusername" is the shortname for your admin account. Anything other than the obvious "admin" is a good way to go. Note that you can also limit this by IP, via the following:
    AllowUsers [email protected]*
    - to limit to a local subnet, for example. Edit accordingly to match your network configuration.
    Once (and only after) you setup ssh key authentication (see below),
    change:
    #PasswordAuthentication yes
    to:
    PasswordAuthentication no
    =================
    For setting up ssh keys, see either (or both of):
    http://www.afp548.com/article.php?story=20040816224717742
    http://www.bombich.com/mactips/rsync.html
    starting at Before you start: Security Briefing

  • What makes the "Enable Root User" option available?

    I've read the articles on enabling and disabling the root user.  They all get to the Open Directory Utility where you need to "Choose Edit > Enable Root User" .  I can successfully do this on MacBook Air with Lion, but not my Mini with Mavericks because Enable root User is not enables (grey).  WhatdoI need to do to enable it, or another way, what would cause it to be disabled?

    cdefromtacoma wrote:
    Never mind.  I have decades experience with Unix/Linux etc. (just not so much with OS X), and in this instance I know I need root.  Besides, if not this time, then sometime soon.  Thanks for your efforts though.
    All the more reason for my question. You can always get root via sudo. If you didn't have that experience with UNIX then it might be a more difficult question of explaining how to use the Terminal. The only reason to enable the root user is to perform an Aqua login as root. All of the system-level operations are far more easily done in the Terminal than in the UI. Plus, nobody, including Apple, ever enables root so there is no telling what performing UI actions as root will do. I'm not being pedantic here. I am just repeating what I hear from Apple. I filed a bug report on the buggy "enable root" operation and Apple's response was literally "why not just use sudo?".

  • HT1528 I can not find the enable root user in, I am using Lion

    I can not find the enable root user in, I am using Lion

    First off, it is a "Bad" idea to enable 'root', as that is the one known account that exists on every Unix system.  If 'root' is enabled, it makes it much easier to break into a Mac via the one account that has absolute control over everything.
    Having said that...
    i too do not observe in editor section enable root user when I perform what Kappy offered in link.
    Did you click on "Login Options" to get the "Join..." button?
    Did you click on "Open Directory Utility" ?
    Did you go to the Menu Bar and click "Edit"?  It should be right there 2/3's of the way down the "Edit" menu -> "Enable Root User"
    If you want another way.
    Start an Applications -> Utilities -> Terminal session
    sudo su -
    password:  <enter your admin password here>
    passwd
    Changing password for root.
    New password:
    Retype new password:
    You have now enabled 'root'.  I hope you gave 'root' a very VERY STRONG password, as you have just opened yourself up for script kiddies to go after your root account.

  • Trouble enabling root user on mavericks

    I am trying to install the utility qprint and in order to install it in the location /usr/local/bin, I need to enable root user which I of course I plan to disable after executing the command. I have followed the instructions to the point of opening the Directory Utility but I do not see the 'Enable root user' option. I see 3 tabs, Services, Search Policy, and Directory Editor. I've poked around in all 3 tabs but do not see the option to Enable Root User. I have 2 questions: 1) Is there another way for me install the qprint utility without having to go through this? and 2) If not, what am I missing? Thanks in advance for any guidance.

    Thanks Niel ... for some reason I was thinking that the edit described was located in the window - didn't even cross my mind to look at the menus above. Thanks again for your help.

  • Changing short name - cannot enable root user??

    Hi I encountered a problem trying to enable the root user in order to follow the steps to change my short name. As I follow the steps into opening Directory Utility and entering my administrator account name and password. Here's where I'm stuck at, there is no "Edit" button asking me to enable the root user. Anyone have any idea what I should do now?

    ow88 wrote:
    Alright I have no idea why I can't edit my own post, but anyways..
    You only have about 10 minutes to edit.
    did a little research, turns out it gets more complicating than that. It messes up your files, locks you out, and you lose being your own adminstrator? But since I have nothing saved, this doesn't affect me right?
    In Directory Utility.app (in utilities) unlock the lock, lower left by clicking on it. Then in the menu, top left on your screen, under Edit, click Enable Root user and proceed.
    You can also enable the root in a terminal by entering
    sudo passwd root
    and first entering your regular admin password and then selecting a root password, which should not be the same as your admin password for obvious reasons.
    After that you are on your own, but I suggest first backing the OS up since there might be unexpected consequences from changing the short name. Even if you have nothing saved, you might find that the OS gets hosed for some reason and you have to do a complete reinstall. Using a TM or clone backup makes this a trivial thing to do. Otherwise, it's starting from scratch and updating everything all over again.

  • Mountain Lion won't allow me to enable root user

    Hi, I'm new to everything Mac, but I'm trying to learn.  Just purchased a used mid-2011 iMac from an individual.  I love the iMac.  Just a few kinks to work out.  One is that he had originally named either the user account or home directory (I still can't figure out which) and i'd like to change that name.  I found an Apple support article on this (Article HT1428) and I am hopeful it will work for me.  However, the first step is to enable the root user.  I went to Article PH11331 to follow steps to enable the root user.  However, when I select Edit from within the Directory Utility, I am unable to select "Enable Root User", or even "Disable Root User" or "Change Root Password" for that matter.  These options are either not there or are greyed out ("Enable Root User" is greyed out).  So I have failed to even jump the first hurdle (enabling root user) towards my goal of changing the user account or home directory name (sorry I don't know which is which).  Can anyone offer some advice please?  Thanks!

    Mac Basics: Time Machine
    Back up all data to at least two different storage devices.
    Boot into Recovery, launch Disk Utility, and erase the startup volume. This operation will destroy all data on the volume, so you had be better be sure of your backups. Install OS X. If your Mac was upgraded from an older version of OS X, you’ll need the Apple ID and password you used to upgrade, so make a note of those before you begin.
    When you reboot, you'll be prompted to go through the initial setup process. That’s when you transfer the data from one of your backups. For a walkthrough, see here:
    Using Setup Assistant
    Don't transfer the Guest account, if it was enabled on the old system.
    Note: You need an always-on Ethernet or Wi-Fi connection to the Internet to use Recovery. It won’t work with USB or PPPoE modems, or with networks that require any kind of authentication other than a WPA or WPA2 Personal password.

  • HT1528 I dont see  "Enable Root User" on my Mac 10.7.5

    I dont see  "Enable Root User" on my Mac 10.7.5

    After step Eight in the enable root article, it says to click Enable Root User in the Edit menu.  This that once you are there, you need to go to the top of the screen its self and, on the ribbon, click Edit.  The menu will drop down, and somewhere on the list you will see Enable Root User.  It looks like this with any luck.
                              TOP OF SCREEN                           
        Directory Utility   File   Edit   Window   Help
                                                |Undo                                      |
                                                |Redo                                      |
                                                |---------------                               |
                                                |Cut                                         |
                                                |Copy                                      |
                                                |Paste                                     |
                                                |Clear                                      |
                                                |Select All                                |
                                                |---------------                               |
                                                |Change Root Password...         |
                                          ==>|Enable Root User                    |
                                                |---------------                               |
                                                |Search For Mac OS X Servers |
                                                |---------------                               |
                                                |Start Dictation                         |
                                                |Special Characters                  |

  • Is there a way to enable tabbing betwen form fields on ipad?

    I have forms created in Adobe Acrobat X Pro on an ipad 3. The forms work as expected apart from being able to use the tab key to move between fields. is there any way to enable this on the ipad. Works fine on a pc and tabs in the correct order.
    thanks.

    There is no tab button on the on screen keyboard. Instead, there you should use the prev/next. As for the bluetooth, this is something we're considering. One odd issue with PDF is that the fields aren't actually fillable fields until they are activated by tap. This is why the standard prev/next behavior with the tab key on the bluetooth keyboard doesn't work. However, this is something we're actively investigating for a future release. It won't be in our next release, but please keep an eye out for future updates.

  • Is there a way to enable & configure Volume Discounts via the Product Import Spreadsheet? Is there a way to enable more than 2 Quantity Thresholds?

    Is there a way to enable & configure Volume Discounts via the Product Import Spreadsheet? Is there a way to enable more than 2 Quantity Thresholds?

    Hi Michael,
    You can set the thresholds via an import file. The easiest way to do this (and this goes for all importable data, webapps included, 301 redirects and so on) is this:
    1. go into the Admin and create a single item, in you case create a test product and set the thresholds
    2. export that data - in your case export the product list
    3. take a look at how the data looks like in the export file so you can get an idea of how the format should be like in the import file
    Unfortunately you cannot set more than 2 thresholds, that is not possible at the moment.
    Thanks,
    Mihai

Maybe you are looking for