Mountain Lion 10.8.2 (Hosts File Locked)

In OS X Lion 10.7, I had edited my Hosts File to prevent certain web-sites from loading and would like to access them again, however I have noticed that in the latest update of Mountain Lion 10.8.2 the "/private/etc/hosts" file is locked and cannot even be modified in terminal using vi, nano or pica.  Does anyone know a way around this?  I even tried logging into to the repair volume of OS X to try to no luck.  Has anyone been successful?

Okay, after a ton of researching terminal commands, I finally found the solution to my own question.
1) First you need to log-in as the Root User in Terminal using the following command:
sudo su -
2) Then you need to remove the "sticky" lock assigned to the hosts file that prevents people from modifying it:
chflags nouchg /private/etc/hosts
3) Then you can edit the hosts file as per usual via the following command:
sudo nano /private/etc/hosts
"Control O" to Save
"Control X" to Exit
4) Then in Mountain Lion you should flush your cache to ensure the new hosts file is current:
sudo killall -HUP mDNSResponder
5) Go ahead and reapply the "sticky" lock so the hosts file doesn't modify itself:
chflags uchg /private/etc/hosts
I hope this helps!

Similar Messages

  • After upgrading to Mountain Lion, I cannot open my File Maker Pro files. Can I use Numbers to open these files?

    After upgrading to Mountain Lion, I cannot open my File Maker Pro files. Can I use Numbers to open these files?

    Numbers is a spreadsheet program and FileMaker is a database program, so you probably can't use Numbers to open them unless you had first exported them from FileMaker in a spreadsheet-compatible format.
    If you upgraded from 10.6 Snow Leopard or earlier and your old copy of FileMaker won't open anymore, it might be a PowerPC application that is not compatible with 10.7 and later. If that is the case, to work with your FileMaker files you should upgrade your copy of FileMaker to the latest version, which seems to be FileMaker 12.

  • Mountain Lion won't display .MTS files from camera SD card in the finder

    OS Mountain Lion will not show .MTS files from my camera SD card in the finder.
    I don't want to play them. I just need to see a list of the files so that I can copy them off the card onto a hard drive. I know how to convert them.
    I have a Panasonic High Def video camera that records .MTS files.
    I understand how to convert MTS files for editing in Final Cut Pro. It is not a problem. I have  been doing this with no problems using OS 10.7.5
    I plug in my camera, and the SD card shows up as a hard drive in my finder. I click on the hard drive icon and it opens several folders. DCIM, MISC, PRIVATE.
    I click on the PRIVATE folder and subfolders open. I click on the AVCHD folder, and then go down to STREAMING, and there are the MTS files.  I select them and import them into BIGASOFT video converter and convert them to .MOV files, which I can edit in FCP.
    So that works great in OS 10.7.5
    Here is my problem:
    On my new MacBook Pro with OS10.8.3 I plug in the camera. It reads the SD card.
    I see the folder DCIM and I see the folder MISC. But the PRIVATE folder (where the .MTS files reside) shows up as a QuickTime icon.  I click on that, but the MTS files do not show up.
    I don’t need to play the MTS files. I don’t need to know how to convert them. I can do that.
    I right clicked on the PRIVATE (not folder but QT icon) and selected "show package contents." That gave me another list, with an icon for AVCHD, but when I right clicked again and selected "show package contents" the MTS files would not appear.
    I just need to be able to see as a list and copy them on to a hard drive.  Why does Apple make this so hard? 

    STEP BY STEP INSTRUCTIONS TO RECOGNIZE AND IMPORT MTS FILES. (No help from Apple.)
    After 4 frustrating hours and about 40 useless minutes wasted on Apple Support chat, I figured this out.
    Okay, here are the steps to allow Mountain Lion to see your MTS files on a Panasonic camera SD card and import them:
    Click on your camera SD card.
    RIGHT Click on PRIVATE icon. (This used to be a folder, now it is a Quicktime logo.)
    Pull down command for “Show Package Contents”
    Click on AVCHD
    Pull down command for “Show Package Contents”
    Click on BDMV
    Pull down command for “Show Package Contents”
    Open the folder called STREAM
    There are your MTS files. Select them and copy them to a folder on your hard drive.
    Purchase some type of video converter (I paid 30 bucks for Bigasoft Converter and it works.)
    Import the MTS files into the video converter and set the commands (This is several more steps, which you will have to figure out.) This will take quite a while for large, High Def files.
    Save converted files to your hard drive.
    NOW, finally FCP X will let you import and edit your files.
    Thanks Apple for adding 12 steps where it should take one. “Log and Transfer” or IMPORT.  You should fix this.
    It took me about 4 hours of frustration to figure this out. Apple support chat service was no help at all. The girl in chat had no understanding of video files.
    Thank you Apple, for hiding these files behind your Quicktime logo, thanks for adding extra steps and decreasing productivity. I've been using Macintosh computers since 1987. I would not own a PC, but Apple is not what it used to be. Why would you not just let the .MTS files show without hiding them?

  • Mountain Lion freezes when opening pdf file on preview

    Mountain Lion freezes when opening pdf file on preview. I have to power down my Mac

    Mountain Lion freezes when opening pdf file on preview. I have to power down my Mac

  • Why can't the finder in Mountain Lion 10.8.2 find files that have successfully downloaded, or that other programs can find?

    Why can't the finder in Mountain Lion 10.8.2 find files that have successfully downloaded, or that other programs can find?
    This happens with maybe 1 out of 5 files. These are files that have either an ."aa" extention, or or are libraries that icloud can see, but finder can't.

    Files beginning with a period are invisible and library files are system files. Spotlight cannot find either unless configured to do so (btw, this is not a Finder issue but a Spotlight issue.)
    Get Spotlight to search system files (and more)
    Enter the search term in the Finder window's search field.
    Click the [+] button in the search bar to add a search option.
    In the first drop down menu choose Other.
    Choose “System Files” from the list that pops up (and check the box to place in drop down menu to avoid this step later,) click on the OK button.
    Now back in the Finder choose Include from the second drop down menu.

  • Mountain Lion problem with CAF sound files

    I have various sound files in a Cocoa game under OSX with OpenAL and now with Mountain Lion all the small CAF files (5kb or less) do not play.  Al the other larger CAF files play as normal.  All the files load with no errors.
    Does anyone have any thoughts on what might be causing this?  Anyone else seen problems with sound files?

    This is how it looks like for me. This accours on every Boot Up.

  • Mountain lion finder rearranges my icon files

    I've discovered a bug:
    Mountain Lion's Finder rearranges my icon files by alphabet when I paste more than one document into a directory.  It happened twice.  Sometimes I prefer visual arrangement in directories.
    SECOND PROBLEM:
    I also don't like the permanent default Finder window size - I want OS X to remember my last Finder window size like it used to.  I have a big Apple monitor, I like using it.
    Is there any way to fix these issues?
    Thanks!

    Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.
    Feedback
    Or you can use your Apple ID to register with this site and go the Apple BugReporter. Supposedly you will get an answer if you submit feedback.
    Feedback via Apple Developer

  • Mountain Lion/Illustrator creating large PDF files

    I have an iMac [Snow Leopard] that runs Adobe Illustrator, and also a Macbook Pro [Mid 2012, Mountain Lion] that also runs the software.
    Both are set up identically, but using the same image files, the iMac produces PDFs of about 1.6MB, whereas the MacBook Pro produces files of 60MB.
    Has anyone any idea whether Mountain Lion has some problems generating PDFs?
    I have abandoned the MacBook for this work, and have to use a Windows 7 computer in its place - which is sad...

    You could try adjusting the transparency settings or the image settings.
    Be certain you know what you're adjusting before you attempt this, though.
    I've had some luck with just going to: Document > Reduce File Size...
    I'll let some of the "real" experts chime in on this because I really don't
    want to lead you down the wrong path here.
    Thanks!
    Theresa

  • HT5444 it says when i try to download mountain lion that The product distribution file could not be verified. It may be damaged or was not signed. so what do i do

    The product distribution file could not be verified. It may be damaged or was not signed.

    This should also work for Mountain Lion.
    Mavericks Download can’t be verified

  • Quick Time (Mountain Lion) won't play .AVI files.

    Since all of you probably already know the information I typed in the headtitle, I have a question. So obviously .avi files can not be played on this version of Quick Time that comes with Mountain Lion, but, would buying a Quick Time Pro solve my problem? I'm ready to pay 30$ for the program, but first I'd like to know would it enable me to play .avi and all sorts of other video files? Ofcourse I read it does play all sorts of files including .avi, but I'd like to hear it from somebody who actually uses Quick Time Pro on Mountain Lion. Thanks for your help in advance!
    Dino Sertovic
    P.S. I already have tried VLC, I use it but that's not the solution I'm asking for. Nor that, nor other programs such as MplayerX. I'm interested only in Quick Time while it never breaks, deinterlaces my footy nice and is very simple and user friendly.

    You don't need to buy Quick Time Pro.  Quick Time Pro is just a paid add-on to add features to QuickTime Player 7.  You don't need the Pro features for just playing.  The player in your Applications folder is Quick Time X.  QuickTime Player 7 should be in your Utilities folder (which is inside yoir Aplicatioins folder).  If it's not there, download it from:
    <http://support.apple.com/kb/DL923>
    QuickTime Player 7 will play .AVI files if you install Perian
    <http://perian.org>
    then replace its A52 codec component
    <http://www.techisky.com/answers/does-perian-support-ac3-on-mountain-lion-10-8-ho w-to-fix.html#more-120>

  • Mountain Lion on new SSD, other files on other internal HDD

    I've been using Mountain Lion from day one, but would now like to put it on a new SSD drive in my Mac Pro.
    All my working files (music, photos, movies and emails) have all my files backed up on other drives, so want to do this as a clean install (and not migrating any other files over at the moment, other than emails).
    I want to have ML on the SSD drive including all applications I use, but to have Documents, Movies, Photos and Downloads on hard drive (non-SSD) as have more capacity on this.  When needed, I will transfer the files to this hard drive from the other drives they are on now.
    How can I do this by keeping the majority of my Home folder on another drive.
    Any help and advice would be greatly appreciated.
    Thanks in advance.
    Matt

    The simplest way to handle this -- AFTER you've migrated or re-installed OS X to thenew SSD - -is then to move your entire home folder (which by default is a subfolder of /Users) to the other drive.  That's something I wanted for my 2011 iMac, which came with a factory-installed SSD as well as an internal HD, with OS X and /users already on the SSD as start-up drive.
    I found out how by using my AppleCare to phone Apple support. But the same procedure they described seems to be what's at http://macs.about.com/od/diyguidesprojects/qt/Move-Your-Home-Folder-To-A-New-Loc ation.htm .

  • In Mountain Lion - where are the calendar files stored?

    My wife synced her calendars with icloud and google calendar and wiped out her events. I have backups on a HD and Time Machine but I do not know where the calendar files are stored in ML.
    I previous OS's I would look in Application Support but that does not seem to work in ML.
    Where can I find these calendar files stored.
    Thank you

    They are in ~/Library/Calendars, where the '~' represents the user's home folder. The problem is that that Library folder is invisible now. You can easily access it by holding down the option key and choosing Library from the Finder's Go menu.

  • TS3276 I have a 7MB wav file that is only coming across Mountain Lion as a 1.1MB file but the 7.1MB file shows on my iPhone 4s. Help please....

    Hi. I have a 7.1MB wav file that was sent to me. When I download the file from Mail on my Mac Book Air, the file is truncated at 1.1MB. However, when I download the same file onto my iPhone 4S, the file comes out at the appropriate size of 7.1MB. Please help!

    Log in to the Developer forum. You will find instructions on how to install the lastest beta. Your problem is the beta you have installed has expired. All of them did on October 5; you will find hundreds of threads discussing this. If you have a beta it is assumed that you will continue as a beta tester, so a simple update using iTunes will not work.
    If you no longer want to be a beta tester install the GM 7.0.2 by restoring from iTunes using DFU mode.

  • Updating from mountain lion-will i lost my files ?

    Hello,
    I want to upgrade my mac to 10.9 but i am afraid about my files. Will i lost my files, projects in imovie/garageband/iphoto ?
    Can i install a itunes 10? I really don't like a new 11 version.
    Can i install a ilife '09 i need iweb and idvd?
    Thanks
    John

    1. Probably not. Back up anyway; any random event, whether related to the installation or not, may cause data loss.
    2. See above.
    (59796)

  • Trying to upgrade to Mountain Lion, error is  message; " product distribution file could not be verified. It may be damaged or was not signed"

    trying to upgrade to Mountain Lion, error   message; " product distribution file could not be verified. It may be damaged or was not signed" ??
    what to do? This is in App store. I followed the link e-mailed to me that an upgrade was available....... Puzzled.

    Several causes for this problem have been reported. Please take each of the following steps that you haven't already tried. Stop when it's resolved.
    Step 1
    Back up all data.
    From the menu bar, select
     ▹ System Preferences... ▹ Network
    If the preference pane is locked, click the lock icon in the lower left corner and enter your password to unlock it. Then click the Advanced button and select the Proxies tab. If any proxy options are selected, make a note of them and then deselect them. You don’t need to change the bypass or FTP settings. Click OK and then Apply. Test. The result may be that you can't connect to any web server. Restore the previous settings if that happens.
    Step 2
    Rebuild the Spotlight index. If you try to search now from the magnifying-glass icon in the top right corner of the display, there will be an indication that indexing is in progress.
    Step 3
    Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

Maybe you are looking for

  • Partner function not working when creating PO with ref to PReq

    Partner function is not working when creating a Purchase Order with ref to a Purchase Requistion, Partner functions maintained in the vendor master are VN, OA & PI. But OA & PI are not appearing in the PO header partner tab when created with ref to P

  • Re - Process asset accounting year end process

    Hi, Case- XYZ company is already on K4 fiscal year variant, they want to switch from K4 (calendar year) to V3 (Non- calendar year).  Standard SAP process is to create shortened fiscal year for 3 months. But this is only allowed if no entries posted i

  • BDC Recording for 3 transactions in SD

    i need to cancel contracts using these transaction sequentialy i.e VF46 VF11and VF42 using bdc .how to go about it in recording for 3 transactions regards shankar

  • Applying validation checks and generating error

    Hi All, I am new to Informatica project . I have a client requirement of loading the source data to prestage table after removing header and footer (storing to separate table) , then load pre stage table to stage after validating few checks and after

  • Where I find this audio-export-format? AAF embedded, with 75fr handles

    Hi! I have a problem with Adobe Premiere Pro CC (I have the trial version). I need to export a project in this specific format: audio: AAF embedded, with 75fr handles video: H264, 720p It's not a problem to find H26, 720p, but I can't find the AAF em