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
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
- 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. - 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.
- Choose Apple menu > System Preferences, then click Users & Groups.
- Click the lock
button , then enter the administrator name and password that you used to log in. - From the list of users, Control-click or right-click the user that you want to rename. Choose Advanced Options from the shortcut menu.
- 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. - Change the “Home directory” field to match the new name that you gave the home folder in the Users folder.
- Click OK, then quit System Preferences.
- Log out of the current administrator account, then log in to the renamed account.
- Verify that your old files and folders are visible and the account is working as expected.
Posted on Jul 16, 2016 5:20 AM