Code for restoring default permissions to etc/hosts?

Could someone help me with the proper code for setting the permissions on etc/hosts to their proper default setting?

sudo chmod 644 /etc/hosts
sudo chown root:wheel /etc/hosts
Those are the settings on my iMac.
If you use an editor such as
sudo nano /etc/hosts
you will most likely not have these problems.
If you are a more experienced Unix user, then vim or emacs are good choices as well, but both of those editors have steep learning curves.
Message was edited by: BobHarris

Similar Messages

  • Restoring Default Permissions - security zones & applications

    Hi - We're running EP 6, SP 15
    I have stupidly clicked the "reset child permissions" button on three top node folders in the System Admin > Permissions editor. Meaning, of course, that the initial login screen was disabled. While I appreciate how stupid this was and that I shouldn't have done it, does anyone know a quick way of restoiring the Applications, Portal Content and Security Zones folders back to the delivered settings? These are the three folders I reset child permissions on while trying to fix something else.(Doh!)
    Chosen method at present is to look at another, untouched portal system,(QAS) use the audit list editor to compare the settings on all objects within these three folders.
    This sounds like a fairly big job! Any pointers gratefully received.
    Thanks very much
    Andy

    Hi Deepak thanks for the swift reply. The help is helpful, but I had already started looking in the help thanks to one of the two (thread ID 140252 - sap help link similar to yours)
    thankfully this lists the default settings on the zones. the fix i have applied is to give the Everyone group pemissions READ and END USER at the folder level - is this what most people do? As I understand it the only problem is that Applications are directly accessible through the URL - Are there other issues I am missing?
    Thanks again (yes I will come back and give points, once finished...!)
    Andy

  • OIM 11GR2 - mechanism for restoring default adf user forms - create user

    Hi All
    Our developers has pubkished multiple OIM sandbox and create user form is broken
    : the user creation form does not appear - only a html <div> tag .
    The developer reverted the form using the em/console - then he ran the catalog sync job but all he can acheive is a blank form not the original user create forms
    How do we restore the forms to thier original state.
    Thanks

    Not sure if this helps. But try these steps mentioned in the developer's guide. Once I did some UI customization in identity console and could not load my page after that. I followed these steps and was successfully able to restore it back. You can give a try and in step 6 try to select some known sandbox name which did not have any issues.
    1. Login to Oracle Enterprise Manager.
    2. In Application Deployments, select oracle.iam.ui.console.self-service.ear.
    3. On the top-right of the page, select Application Deployment, and then select MDS Configuration from the list.
    4. At the bottom of the screen, select Runtime MBean Browser under the Advanced Configuration section. The right side of the screen refreshes.
    5. Click the Operations tab.
    6. Scroll down and identify the listMetadataLabels MBean operation and invoke it. Select the MBean operation that does not take any parameters. Select the sandbox precreate that you want to restore, and copy it to the clipboard.
    For example, the value you copy can be similar to: Creation_IdM_test_09:25:00.
    7. Click Return to go back to the Operation tab.
    8. Find the promoteMetadataLabel MBean operation.
    9. Invoke the promoteMetadataLabel MBean operation, and enter the value that you copied in step 6.
    10. Restart Oracle Identity Manager.

  • How would I Restore Default permissions on Windows dir?

    I have been having several issues on my Win 8.1 Pro PC and its all since I made an error one day and took ownership of the Windows DIR and changing some permissions, but I really made a mess of things.  I managed to get Trusted Installer back
    as the Owner on the Windows DIR and I think I put the permissions back OK.  Now I am still seeing errors in my event log saying access denied... Also several things are still not working correctly. I cannot create a new Refresh image
    (post I made earlier) and my Explorer service keeps hanging then crashing.
    So I wanted to know if there was any way to put my Windows DIR permissions back the right way and taking my current user names into consideration? 
    I know I can run commands to change these but I need to know what they should be set to.  Does anyone have a script I can mod & run to help me correct my problem?
    Any help appreciated.
    Thanks
    JK MCP

    Hi,
    For this log,we can ignore it.
    Regards,
    Kelvin Xu
    TechNet Community Support

  • RGB code for the default JFrame Background colour

    Can anyone let me know what is the RGB representation of the default
    JFrame background colour. I think it is the same colour as the background of this message box.
    Thanks,
    Booh

    have a look at Component.getBackground() which JFrame inherits. This should get the background color for this.
    http://java.sun.com/javase/6/docs/api/java/awt/Component.html#getBackground()

  • My iphone suddenly crashed and asked for restoration, however itunes sends error message of host not available, what should I do?

    My iphone suddenly crashed and asked for restoration, however itunes sends error message of host not available (3014), what should I do?

    Try -
    Error 1004, 1013, 1638, 3014, 3194: These errors may be the result of the connection to gs.apple.com being redirected or blocked. Follow these steps to resolve these errors:
    Install the latest version of iTunes.
    Check security software. Ensure that communication to gs.apple.com is allowed. Follow this article for assistance with security software. iTunes for Windows: Troubleshooting security software issues.
    Check the hosts file. The restore will fail if there is an active entry to redirect gs.apple.com. Follow iTunes: Advanced iTunes Store troubleshooting to edit the hosts file or revert to a default hosts file. See section "Blocked by configuration: (Mac OS X/Windows) > Rebuild network information".
    Try to restore from another known-good computer and network.
    If the errors persist on another computer, the device may need service.
    The "device may need service" means a hardware problem. In that case make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar
    Also see:
    3014
    Restoration of code 3014 will not work?: Apple Support Communities

  • How do you change the default permissions for files?

    I have all my users saving (via AFP) to an Xserve RAID, I am using ACL to control who has access to certain area.
    This is fine when moving files in the finder, all ACL are respected, however when saving files from Photoshop it ignores the ACL's.
    So if user A saves a file they become the owner- which is fine, but the group and everyone permissions are read only, so when user B ammends the file they get a permission warning when they try to save, the work round I'm using is to trash the file just before you try to save- not ideal cos if the save fails you've lost the work.
    What I would like is for the default permission to be group "design" Read and Write and leave everyone as read only
    So when any designer goes to oversave a file in photoshop they can do.
    I needf to leave ACL's on as they are working well in every other situation, i.e I have certain folders set so once images have been added they cannot be deleted or renamed by certain users.
    It only seems to be Photoshop that gives us this problem, Quark files and other docs are able to be saved according to the ACL

    Hi
    There are some important distinctions and points to be made here.
    POSIX Permissions are always set for every file and folder. ACLs are optional for any file, folder or share point and work IN ADDITION to POSIX Permissions. SACLs (Service Access Control Lists) are optional for specific services such as AFP, FTP, SMB, Mail etc and are independent of files and folder as well of standard POSIX Permissions and file system ACLs. Allow access is cumulative and Deny access is first match.
    ACLs supersede but don’t necessarily override Standard UNIX permissions.
    The best way to use ACLs is to enable Access Control Lists on the desired volume, create the share point folder from within Workgroup Manager, define the Users and Groups and then drop the relevant User and/or Group into the ACL window and define access privileges from there. Don’t be tempted to use the Standard UNIX permissions in addition to ACLs as all sorts of problems can ensue.
    Privileges and access can quickly get confused and share points can be broken. Deny settings defined in ACL take precedence over all other privileges settings. Deny settings defined using Standard UNIX as well as ACLs can, in some cases, mean share points becoming inaccessible to all users even those with administrative privileges.
    Wherever possible try not to set access privileges using the Finder.
    For a much fuller explanation and a method for calculating umask values consult Gerrit de Witt’s series of articles:
    http://discussions.apple.com/thread.jspa?messageID=648307&#648307

  • Entry in /etc/hosts.allow for insecure VNC?

    I read the ssh wiki article which teaches to add an entry to /etc/hosts.allow for sshd.  I am know that tunneling vnc through sshd is the way to go security wise, however, there are cases where I need to switch on un-encrypted vnc for the purposes of sharing my X11 session with family members.  Anyway, my question deals with an entry in the /etc/hosts.allow for gnome's desktop sharing (which is vnc as I understand it).  Does anyone know the syntax to allow vnc for any incoming connection (default port of 5900).
    I have tried:
    vino: ALL
    Xvnc: ALL
    X11vnc: ALL
    None of which worked.
    Thanks!

    when I don't know what's the name of the process listening to specific port, I always execute
    netstat -tnlp
    to get the proper processes' names.

  • What is the screen lock default code for iPod nano 5th gen?

    What is the screen lock default code for iPod nano 5th gen?

    There isn't one.  You'll need to connect the Nano to your iTunes library and restore to factory settings.  There is no other way.
    B-rock

  • Where is the code for the collapse button in the default SAP iview layout?

    I need to eliminate the collapse/restore button displayed on each iView tray. I was looking at the default layout component (com.sap.portal.layouts.default) but I could not find the code for the tray.  The code for "FullWidth.jsp" (this file that implements the "FullWidth" component) is below:
    <%@ taglib uri="prt:taglib:com.sap.portal.reserved.layout.TagLibHtmlb" prefix="hbj" %>
    <%@ taglib uri="prt:taglib:com.sap.portal.reserved.layout.TagLibLayout" prefix="lyt" %>
    <lyt:template>
        <hbj:content id="myContext" >
            <hbj:page title="Portal Page">
                <lyt:container id="column1"  />
            </hbj:page>
        </hbj:content>
    </lyt:template>
    as you can see, there is no reference to the tray tags.
    note: I am familiar with how to create a new iView tray using the new Layout Tag Library (from blog below)
    EFP: Layout Tag Library
    , but I want am not interested in this approach... All I want is to modify the EXISTING tray.

    Hi,
    may be it's helpful for you.
    http://blog.flexexamples.com/2010/05/18/changing-the-background-color-of-a-disabled-spark- textarea-control-in-flex-4/
    Regards
    -Bechar

  • Tax Code Determination - default tax code for sales

    Under the tax code determination window i have set the default tax code for sales as VAT@4% and I have save it.  but when I open the sales quotation , order or any other sales document the tax code is not appeared.  what could be the reason?
    thanks
    SV Reddy

    Is ur "Determination Type" is 'Material Type'?
    FYI from Help file,
    When you enter item information in the marketing documents, system will check the item master data. If the item classification for the tax is:
    Material Item
    The tax code determination for material will start.
    Service Item
    The tax code determination for service will start.
    When you enter service information in the marketing documents, the tax code determination for service documents will start
    Regards,
    Dhana

  • Set default permissions for new files?

    We have a small LAN where different users often need to open and resave each others' files. No server, just a bunch of client computers on ethernet sharing an internet router.
    Each time a user creates a file, that file's permissions default to read only for anyone but that user. How can I set up the default permissions so that any newly-created files default to Read & Write for "groups" and "others".
    I anticipate I will have to make this change for each user on each workstation.
    Any help would be greatly appreciated.
    Thanks

    If you want users to share files then have them place the file in the /Users/Shared/ folder. Files placed in that folder can be accessed by any user.
    Why reward points?(Quoted from Discussions Terms of Use.)
    The reward system helps to increase community participation. When a community member gives you (or another member) a reward for providing helpful advice or a solution to their question, your accumulated points will increase your status level within the community.
    Members may reward you with 5 points if they deem that your reply is helpful and 10 points if you post a solution to their issue. Likewise, when you mark a reply as Helpful or Solved in your own created topic, you will be awarding the respondent with the same point values.

  • HT1414 My iPhone has crashed during a sync and now I can't restore from backup as it is asking for password to load the backup yet neither the lock code for the phone or my iTunes Password are working... I have no other password to all upon and need the r

    My iPhone has crashed during a sync and now I can't restore from backup as it is asking for password to load the backup yet neither the lock code for the phone or my iTunes Password are working... I have no other password to call upon and need the restore to retrieve info onto my phone, I am a real novice to this...... please help, !!!!

    If anyone else is looking for a solution to this same problem, I was able to get it working looking through several older discussions.
    The solution was to use the password that I had on my iTunes account the very first time I set up the iPhone about a year ago.  I changed my iTunes password about 10 months ago;  but apparently, the backups continue to use the password that existed when the phone was first set up.
    A couple of troubling things with this are that 1) I didn't apply a password when I did the backup this afternoon so I don't understand why it was required when I did the restore a few hours later. and 2) it makes zero sense why iTunes would not be smart enough to use the current accout password when requiring the password to restore from a backup made with no password. 
    I thought iTunes and Apple were smarter than that.  With so many posts stating exactly the same problem, it is clear that this is bug in the software. 
    Best,
    Craig

  • T-Code for changing the default Exchange Rate reference for creating PO?

    Dear All,
           Can somebody kindly give me the T-Code for changing the default
    Exchange Rate reference for creating PO? Is there a Step by Step
    procedure before changing the default exchange rate?
    Thank you in advance.
    Regards,
    Gopesh

    Hi
    There is not such Tcode to change the default exchange rate from the PO.
    If you want you can confugure the exchange rate in the following path in the IMG,
    SPRO>MM>LIV>Incoming Invoice>Configure How Exchange Rate Differences Are Treated
    Hope it helps you.
    Cheers
    Umakanth

  • I've just found the keyboard shortcut in Garageband for 'copy region' had changed from cmdC to ctrlC. I went to Preferences and clicked Restore Defaults for shortcuts. Now its altC . How can I get it back to the original commands.

    I've just found the keyboard shortcut in Garageband for 'copy region' had changed from cmdC to ctrlC. I went to Preferences and clicked Restore Defaults for shortcuts. Now its altC . How can I get it back to the original commands.

    When I use find file http://www.macupdate.com/app/mac/30073/find-file (which does tend to find files that "Finder" can't), it's not coming up with any other itunes library files that have been modified in the past week, which I know it would have been - unfortunately, I don't have a very recent backup of the hard drive.  It would be a few months old so it wouldn't have the complete library on it....any ideas?  I'm wondering if restarting the computer might help but have been afraid to do so in case it would make it harder to recover anything...I was looking at this thread https://discussions.apple.com/thread/4211589?start=0&tstart=0 in the hopes that it might have a helpful suggestion but it's definitely a different scenario.

Maybe you are looking for

  • How do I speed up searching in itunes 11?

    I have 90,000+ songs and it took almost 4 minutes to type the word 'the' in the search window.  How do I speed up the search because I can't browse 90k tracks.

  • Writing test case for One-way messaging returns fault

    Hi All,      We are using latest 11.1.1.7 version of SOA Suite. There is a SOA composite which gets data feed from external party using the one-way message exchange pattern to store the feed into the database. i.e. from (Web Service component ----> M

  • Table size

    Hi, I want to find the size of each size in one schema, can anyone tell me how to find the size of the tables? -GK

  • Activation of Datasource in RSA5

    Hi , I am tyring to activate the datsource in RSA5, then i am getting the below message. a. Generating the datasource " Dastsource name " b. object request is currently locked by user " xxxxxxxx". So anybody got the same message while activating the

  • Anyone aware of a 3.0 USB hub without a power cord?

    Anyone aware of a 3.0 USB hub without a power cord?