How do I change the name in Terminal

When I try to access Terminal, and enter a sudo command, it asks for my password.  It has the name wrong of my computer, and then won't accept my password.  I can hit enter 3 times and it brings right back to my starting point.  How do I change the name of my computer and allow it to accept my password?

First, make sure caps lock is not on.
Another reason why the password might not be recognized is that the keyboard layout (input source) has been switched without your realizing it. You can select one of the available layouts by choosing from the flag menu in the upper right corner, if it's showing, or cycle through them by pressing the key combination command-space or command-option-space. See also this support article.
If the user account is associated with an Apple ID, and you know the Apple ID password, then maybe the Apple ID can be used to reset your user account password. In OS X 10.10 and later, this option also works with FileVault, but only if you enabled it when you activated FileVault. It's not retroactive.
Otherwise*, start up in Recovery mode. When the OS X Utilities window appears, select
          Utilities ▹ Terminal
from the menu bar at the top of the screen—not from any of the items in the OS X Utilities window.
In the window that opens, type this:
resetp
Press the tab key. The partial command you typed will automatically be completed to this:
resetpassword
Press return. A Reset Password window opens. Close the Terminal window to get it out of the way.
Select the startup volume ("Macintosh HD," unless you gave it a different name) if not already selected. You won't be able to do this if FileVault is active.
Select your username from the menu labeled Select the user account if not already selected.
Follow the prompts to reset the password. It's safest to choose a password that includes only the characters a-z, A-Z, and 0-9.
Select
           ▹ Restart
from the menu bar.
You should now be able to log in with the new password, but the Keychain will be reset (empty.) If you've forgotten the Keychain password (which is ordinarily the same as the login password), there's no way to recover it.
*Note: If you've activated FileVault, this procedure doesn't apply. Follow instead these instructions.

Similar Messages

  • How can I change the names of catagories that have been added to my music library?  Is it possible to change names or artists or gendre and how to do it?

    How do I change the names of artists or gendre in the itunes list after importing an album?  Is it posssible to change that information?

    Yes. Select one or more tracks (use ctrl or shift clicks to add/remove or extend a selection) then right-click or press CTRL-I to Get Info. Use the different tabs of the dialog to make changes.
    For general advice on getting things neat & tidy see my article on Grouping tracks into albums.
    tt2

  • How can I change the name of item in TableViewController iOS

    How can I change the name of item in TableViewController? I want to be able to change the title of an item if I added one. Code:
    //  ViewController.m
    //  Movie List
    //  Created by Damian on 20/02/15.
    //  Copyright (c) 2015 Tika Software. All rights reserved.
    #import "ViewController.h"
    @interface ViewController ()
    These outlets to the buttons use a `strong` reference instead of `weak` because we want
    to keep the buttons around even if they're not inside a view.
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *editButton;
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *cancelButton;
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *deleteButton;
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *addButton;
    // A simple array of strings for the data model.
    @property (nonatomic, strong) NSMutableArray *dataArray;
    @end
    #pragma mark -
    @implementation ViewController
    - (void)viewDidLoad
        [super viewDidLoad];
         This option is also selected in the storyboard. Usually it is better to configure a table view in a xib/storyboard, but we're redundantly configuring this in code to demonstrate how to do that.
        self.tableView.allowsMultipleSelectionDuringEditing = YES;
        // populate the data array with some example objects
        self.dataArray = [NSMutableArray new];
        NSString *itemFormatString = NSLocalizedString(@"Movie %d", @"Format string for item");
        for (unsigned int itemNumber = 1; itemNumber <= 0; itemNumber++)
            NSString *itemName = [NSString stringWithFormat:itemFormatString, itemNumber];
            [self.dataArray addObject:itemName];
        // make our view consistent
        [self updateButtonsToMatchTableState];
    #pragma mark - UITableViewDelegate
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
        return self.dataArray.count;
    - (void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath
        // Update the delete button's title based on how many items are selected.
        [self updateDeleteButtonTitle];
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
        // Update the delete button's title based on how many items are selected.
        [self updateButtonsToMatchTableState];
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
        // Configure a cell to show the corresponding string from the array.
        static NSString *kCellID = @"cellID";
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kCellID];
        cell.textLabel.text = [self.dataArray objectAtIndex:indexPath.row];
        return cell;
    #pragma mark - Action methods
    - (IBAction)editAction:(id)sender
        [self.tableView setEditing:YES animated:YES];
        [self updateButtonsToMatchTableState];
    - (IBAction)cancelAction:(id)sender
        [self.tableView setEditing:NO animated:YES];
        [self updateButtonsToMatchTableState];
    - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
        // The user tapped one of the OK/Cancel buttons.
        if (buttonIndex == 0)
            // Delete what the user selected.
            NSArray *selectedRows = [self.tableView indexPathsForSelectedRows];
            BOOL deleteSpecificRows = selectedRows.count > 0;
            if (deleteSpecificRows)
                // Build an NSIndexSet of all the objects to delete, so they can all be removed at once.
                NSMutableIndexSet *indicesOfItemsToDelete = [NSMutableIndexSet new];
                for (NSIndexPath *selectionIndex in selectedRows)
                    [indicesOfItemsToDelete addIndex:selectionIndex.row];
                // Delete the objects from our data model.
                [self.dataArray removeObjectsAtIndexes:indicesOfItemsToDelete];
                // Tell the tableView that we deleted the objects
                [self.tableView deleteRowsAtIndexPaths:selectedRows withRowAnimation:UITableViewRowAnimationAutomatic];
            else
                // Delete everything, delete the objects from our data model.
                [self.dataArray removeAllObjects];
                // Tell the tableView that we deleted the objects.
                // Because we are deleting all the rows, just reload the current table section
                [self.tableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationAutomatic];
            // Exit editing mode after the deletion.
            [self.tableView setEditing:NO animated:YES];
            [self updateButtonsToMatchTableState];
    - (IBAction)deleteAction:(id)sender
        // Open a dialog with just an OK button.
        NSString *actionTitle;
        if (([[self.tableView indexPathsForSelectedRows] count] == 1)) {
            actionTitle = NSLocalizedString(@"Are you sure you want to remove this movie?", @"");
        else
            actionTitle = NSLocalizedString(@"Are you sure you want to remove these movies?", @"");
        NSString *cancelTitle = NSLocalizedString(@"Cancel", @"Cancel title for item removal action");
        NSString *okTitle = NSLocalizedString(@"OK", @"OK title for item removal action");
        UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:actionTitle
                                                                 delegate:self
                                                        cancelButtonTitle:cancelTitle
                                                   destructiveButtonTitle:okTitle
                                                        otherButtonTitles:nil];
        actionSheet.actionSheetStyle = UIActionSheetStyleDefault;
        // Show from our table view (pops up in the middle of the table).
        [actionSheet showInView:self.view];
    - (IBAction)addAction:(id)sender
        [self.dataArray addObject:@"New Movie"];
        // Tell the tableView about the item that was added.
        NSIndexPath *indexPathOfNewItem = [NSIndexPath indexPathForRowself.dataArray.count - 1) inSection:0];
        [self.tableView insertRowsAtIndexPaths:@[indexPathOfNewItem]
                              withRowAnimation:UITableViewRowAnimationAutomatic];
        // Tell the tableView we have finished adding or removing items.
        [self.tableView endUpdates];
        // Scroll the tableView so the new item is visible
        [self.tableView scrollToRowAtIndexPath:indexPathOfNewItem
                              atScrollPosition:UITableViewScrollPositionBottom
                                      animated:YES];
        // Update the buttons if we need to.
        [self updateButtonsToMatchTableState];
    #pragma mark - Updating button state
    - (void)updateButtonsToMatchTableState
        if (self.tableView.editing)
            // Show the option to cancel the edit.
            self.navigationItem.rightBarButtonItem = self.cancelButton;
            [self updateDeleteButtonTitle];
            // Show the delete button.
            self.navigationItem.leftBarButtonItem = self.deleteButton;
        else
            // Not in editing mode.
            self.navigationItem.leftBarButtonItem = self.addButton;
            // Show the edit button, but disable the edit button if there's nothing to edit.
            if (self.dataArray.count > 0)
                self.editButton.enabled = YES;
            else
                self.editButton.enabled = NO;
            self.navigationItem.rightBarButtonItem = self.editButton;
    - (void)updateDeleteButtonTitle
        // Update the delete button's title, based on how many items are selected
        NSArray *selectedRows = [self.tableView indexPathsForSelectedRows];
        BOOL allItemsAreSelected = selectedRows.count == self.dataArray.count;
        BOOL noItemsAreSelected = selectedRows.count == 0;
        if (allItemsAreSelected || noItemsAreSelected)
            self.deleteButton.title = NSLocalizedString(@"Delete All", @"");
        else
            NSString *titleFormatString =
            NSLocalizedString(@"Delete (%d)", @"Title for delete button with placeholder for number");
            self.deleteButton.title = [NSString stringWithFormat:titleFormatString, selectedRows.count];
    @end

    Hey JB001,
    Sounds like you have more going on than just a simple issue with Home Sharing and more dealing with Wi-Fi syncing. Start with the article below and see if that may resolve it.
    iTunes 10.5 and later: Troubleshooting iTunes Wi-Fi syncing
    http://support.apple.com/kb/TS4062
    If it does not work out, then may I suggest contacting Apple for further assistance to walk you through it or just take that time that you were talking about to sort it out.
    Contact Apple Support
    https://getsupport.apple.com/GetproductgroupList.action
    Regards,
    -Norm G.

  • Same question for the "2 iPhones in one account".....How do I change the name.  My iPhone is showing my wife's iPhone name when I am syncing it.  Why is that?  I know about using one iTunes account....But how do you change the name w/o erasing your data?

    Hi....How do you change the name?  When I sync my iPhone, it shows my wife's name on it?

    Unfortunately it is not doing it....
    Let me give more details..We have 3 iPods and 2 iPhone4....I recently purchased the iPhone4 and when we connected it..It was already reading my wife's iPhone4..We went to the Apple Store at the Grove today and was told to de-authorize the system and connect my iPhone4 back and I should be able to change the name.
    Nothing happened..Right now, I clicked on RESTORE settings...and it is uploading a new iPhone update. 

  • How do i change the name associated with my icloud

    how do i change the name associated with my icloud

    If you are trying to change the iCloud ID to another ID, go to System Preferences>iCloud, sign out, then sign back in with the ID you want to use.
    If you are trying to change the name of your existing iCloud ID and not trying to change to a different ID, you can change the name of the ID as explained here: http://support.apple.com/kb/HT5621.  After doing so, you'll need to sign out of the exising ID, then sign back in using the changed ID.

  • How can I change the name of a Materialized View?

    How can I change the name of a Materialized View?

    Oracle permitted renaming the snapshot in the earlier versions of 8i. However, it does not permit renaming the materialized view in 9i or 10g.
    SQL> rename mymatview to mymatview2;
    rename mymatview to mymatview2
    ERROR at line 1:
    ORA-32318: cannot rename a materialized view
    SQL> disconnect
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit Production
    With the Partitioning, Oracle Label Security, OLAP and Data Mining options
    SQL> rename mymatview to mymatview2;
    rename mymatview to mymatview2
    ERROR at line 1:
    ORA-32318: cannot rename a materialized view
    SQL> disconnect
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.3.0 - 64bit Production
    With the Partitioning option
    JServer Release 9.2.0.3.0 - Production

  • How do I change the name next to the home icon in Snow Leopard

    How do I change the name next to the home icon in Snow Leopard?

    Open the Accounts pane of System Preferences, unlock it, control-click your account, choose Advanced Options, and change its name there.
    (79496)

  • HT2513 How do you change the name of a reminder in the reminder list.  I right click and then choose "get information"  I can change the colour of the reminder but when I type in the name that I want and then press enter the name stays as "untitled".

    How do you change the name of a reminder in the reminder list.  I right click and then choose "get information"  I can change the colour of the reminder but when I type in the name that I want and then press enter the name stays as "untitled"

    Jerry,
    Thanks for replying again. I've got a little bit further thanks to you. I tried the US keyboard layout as you seemed pretty definte that it should work. This time I applied the setting and also started the language toolbar and selected it from there.
    Hey presto, I've got the @ where it should be. Excellent.
    However the single quote ' works in a weird way. When I press it, it doesn't show up on the screen. But when I press another key, I get the single quote plus the next key I press. When I press the single quote twice, I get 2 of them. This is also the same with the SHIFT ' key. i.e. for the double quotes.
    Very strange. I'll look at other keyboards and see where that gets me.
    Thanks,  Maz

  • How do I change the name of my macbook pro?

    How do I change the name of my macbook pro.  My full name is listed on it and I want to change that.  In the upper right hand corner it is correct but all that lists is my login name.

    Mr. Pat, there are some people who still try to do that, but you are risking losing all your music, photos, email, etc. It is not for the faint of heart.  This page, albeit published in 2003 by Dr. Smoke, is still pretty valid, IMHO:
    http://thexlab.com/faqs/renamehomerecovery.html
    Here's the opening copy:
    Recover from renaming your Home folder
    It is a grave mistake to rename your Home folder -- changing its file name from johnsmith toJohn, for example -- in an attempt to change the short name for your account when using Mac® OS X.
    Here's a newer, last scary article from the Apple Knowledge Base:
    http://support.apple.com/kb/HT1428viewlocale=en_US&locale=en_US

  • How do I change the name of a smart playlist in iTunes?

    How do I change the name of a smart plylist in Itunes please?

    Simply double click on the playlist name.
    Really easy
    Let me know

  • How do i change the name of my phone in i tunes - inherited from my husband

    I've inherited my husband's old phone and am on a sim only contract -I have set upmy apple id but when i synch tunes it shows the phone as my husbands ( albeit my number ) - how do i change the name of the phone ? - thanks

    In iTunes, just click on the name on the sidebar or in the info panel and edit it.  Or, on the iPhone itself,
    Settings -> General -> About -> Name

  • Lion does not have "Save as." How do I change the name of a Keynote presentation?

    How can I change the name of a Keynote presentation in Lion since it does not have "save as'?

    This is so lame it feels like MS Windows. From a simple one step process it now requires first to duplicate, then ito browse back to the folder you were working in and then finally to type in a new mame. Why not just leave save as?????? This is getting so very anoying ...... just like windows with its never ending quetsions. Apple please bring back Save as.

  • How do I change the name of my computer

    How do I change the name of my new iMac, my wife set it up and she named it wrong and I want to name i differently. Now I have 2 computers on the network with her name as the computer name at least one has an 's after the name, but I just want a totally different name.

    Go to the "Sharing" Preference Pane in "System Preferences" and there is teh field at the top where you can enter/change your computer name.

  • How do i change the name of my ipod without going on itunes?

    How do i change the name of my ipod without having to go on itunes and change it. i dont have a computer so i cant change it throught my itunes.

    Without a computer to run iTunes, you are basically hosed when it comes to doing anything with your iPod.
    Allan

  • How can I change the name of a computer I'm getting rid of?

    How can I change the name of the computer to my granddaughter's name? It's now called "My name" G5 iMac. I would also like to delete that computer icon in my Devices on my MacbookPro.

    I guess my reply to these questions in your other topic did not help?
    The name of the computer is in System Preferences Sharing pane.
    If something appears under DEVICES in a Finder window sidebar, you can click hold on it and drag it off the sidebar. If it appears under SHARED, it should no longer appear there once if that iMac is no longer on your local network, or if you turn off its shared services in the Sharing pane.

Maybe you are looking for

  • Why isn't my site working on mobile?

    My site -- blueivorycreative.com -- was uploaded to an FTP host and has been working perfectly both in my computer web browser and on my phone.  However, we are now unable to pull up the site on any mobile phone.  I contacted my hosting service and t

  • Int ?

    Hi! I got this error, when using int, I believe that is the reason anyway,. Do i miss something there in the beginning? Where on the net can I found which things is inluded in which "library"? (Like that i need javax.swing.*; for a dialogbox(JOptionP

  • Problem in include library files into my jar file

    i am new to this jar archiving...I have created a GUI with java swings..and i also use mysql driver to connect my database now i want to make an executable jar file for my GUI..with coonector i have done the following I have compiled my program and p

  • Email Sending Fail

     I have a problem of sending mail through my NOKIA device 5235 for 30 days,I already complaints by mails & calls more than 10 times for this problem to customer care but not given solution for this matter.when I tried to  send the mail below errors i

  • Com.crystaldecisions.sdk.occa.report.lib.ReportSDKException---- Error code:

    Hi, I am trying to run the crystal reports from a web-app in jboss app server (4.3.2). However on running the jsp the below error is received. com.crystaldecisions.sdk.occa.report.lib.ReportSDKException---- Error code:-2147467259 Error code name:fail