nat2656

Q: Reset terminal settings?

Ok so i did a really, really, stupid thing. In my defense I didn't know the consequences ( errrrr.....) nevertheless I made a mistake and would like to fix it but do not want to be making even MORE mistakes.

So this all started because I wanted some social media websites blocked ( I want to limit my use; I managed to do so on iPhone but on Mac it is more tricky). Rather than waste time on Parental Controls (the account I'm on was admin and you can't use Controls on admin), I used Terminal (in the past I have used it fine and nothing terribly bad happened as a result). I used the directions here: http://osxdaily.com/2010/04/21/how-to-block-a-website-from-safari-firefox-or-chr ome/

Everything worked fine! I could no longer access www.youtube.com, www.facebook.com, or www.instagram.com (yay for self- control !!!) Then tricky stuff happened. So I wanted to change my account name so I did. Then I changed my current account to managed and not admin, switched the other account to admin, and actually put Parental controls on (since I forgot I do have multiple accounts- I only use one ://). Anyway, now that I had Parental Controls on I figured no use for the Terminal code-thing. So i looked up how to unblock websites using the Terminal way( See Method 2 here: http://www.wikihow.com/Block-and-Unblock-Internet-Sites-(On-a-Mac) ) . Anyway, when I did that (and entered my password), I got this message: river [my new account name] is not in the sudoers file.  This incident will be reported. Gah! So I tried to reset everything on Terminal, or restore Terminal to its factory settings, using this : http://apple.stackexchange.com/questions/91381/how-can-i-reset-my-terminal 

 

 

Anyway, It still did not work (com.apple.Terminal.plist. doesn't exist).  I tried changing my account name back to the original account name, still nothing worked. I just want terminal back to factory settings! I no longer want to keep experimenting, for fear I might unintentionally do something worse. Please help. Thanks a mil.

MacBook Pro with Retina display, OS X Yosemite (10.10.1)

Posted on Jul 13, 2016 10:06 AM

Close

Q: Reset terminal settings?

  • All replies
  • Helpful answers

  • by Tony T1,

    Tony T1 Tony T1 Jul 14, 2016 6:14 AM in response to nat2656
    Level 6 (9,232 points)
    Mac OS X
    Jul 14, 2016 6:14 AM in response to nat2656

    Its not Terminal that needs to be reset.

    It looks like all you needed to do was add your new account name to the sudoers file with visudo (see: http://apple.stackexchange.com/questions/190883/how-to-solve-user-is-not-in-sudo ers-file-incident-reported)

     

    To get your system back to where it was before you made the changes, If you have a Time Machine backup you can Revert to a previous time (note: any new files, edits, changes made subsequent to that time will be lost) (see: OS X Yosemite: Recover your entire system) (This article is for Yosemite, but its the same procedure for newer OSX versions)

  • by nat2656,

    nat2656 nat2656 Jul 15, 2016 10:54 PM in response to Tony T1
    Level 1 (8 points)
    Desktops
    Jul 15, 2016 10:54 PM in response to Tony T1

    OK, so I reset the computer back to last time I backed it up. I still want to change my account name. How do I add my new account name to the sudoers file? I'm afraid I don't understand the link. What do I need to input in Terminal?

  • by Tony T1,Apple recommended

    Tony T1 Tony T1 Jul 16, 2016 5:20 AM in response to nat2656
    Level 6 (9,232 points)
    Mac OS X
    Jul 16, 2016 5:20 AM in response to nat2656

    Did you change your account name using these instructions: Change the OS X user account name and home folder name on your Mac - Apple Support

     

    Change the account name and home folder name

    Because the account name (short name) is used to create a user's home folder (also known as home directory), the account name and home folder name must match. And when modifying either name, the name you use must not contain spaces. Before following these steps, you should back up your important data.

    OS X Lion or later

    1. Log out of the account you're renaming, then log in to an administrator account. 

      The administrator account needs to be a different account than the one you're renaming. If necessary, create another administrator account, then remove it when you're done.

    2. Go to the Users folder on the startup drive. The Users folder contains the home folder of the account you're renaming. Rename that account's home folder and make note of both the old name and new name. When renaming the folder, you'll be prompted to enter the administrator name and password that you used to log in.
    3. Choose Apple menu  > System Preferences, then click Users & Groups.
    4. Click the lock button , then enter the administrator name and password that you used to log in.
    5. From the list of users, Control-click or right-click the user that you want to rename. Choose Advanced Options from the shortcut menu.
    6. Change the “Account name” field to match the new name that you gave the home folder in the Users folder.

      When modifying the account name (short name) or the home folder name, it should not contain any spaces. If the current account name already contains a space, you won't be able to edit this field until the space has been removed. Click immediately after the space, or use the left arrow key to move the text insertion point immediately after the space, then press the Delete key to remove the space.

    7. Change the “Home directory” field to match the new name that you gave the home folder in the Users folder.
    8. Click OK, then quit System Preferences.
    9. Log out of the current administrator account, then log in to the renamed account.
    10. Verify that your old files and folders are visible and the account is working as expected.