Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How to writable a read only file?

Discussion in 'E-mail Discussion' started by Deker, Aug 14, 2011.

  1. Deker

    Deker Well-Known Member

    Joined:
    Feb 15, 2011
    Messages:
    87
    Likes Received:
    3
    Trophy Points:
    58
    Hello,

    I was thinking my servers IP has blocked by gmail, so I changed the Remote SMTP IP in /etc/exim.conf using an online tutorial.
    It says I should set the exim.conf file read only to preventing it to get reset to default.
    As the tutorial said, I set the file read only with the following command:
    Code:
    # chattr +aui /etc/exim.conf
    
    But now I see in logs that IP is not valid.
    Now I'm trying to edit exim.conf again but I can not write on it because I set it read only.
    How could I make it writable again? I tried chmod but it says:

    Code:
    chmod: changing permissions of `exim.conf': Operation not permitted
     
  2. JawadArshad

    JawadArshad Well-Known Member
    PartnerNOC

    Joined:
    Apr 8, 2008
    Messages:
    458
    Likes Received:
    6
    Trophy Points:
    68
    Location:
    PK
    cPanel Access Level:
    DataCenter Provider
    Use the opposite to remove the immutable attributes.

    Code:
    chattr -aui /etc/exim.conf
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Deker

    Deker Well-Known Member

    Joined:
    Feb 15, 2011
    Messages:
    87
    Likes Received:
    3
    Trophy Points:
    58
    Worked
    Thank you :)
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,609
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    What specific option were you trying to change? Please note that any configuration changes should be done in WHM > Exim Configuration Editor > Advanced Editor area. If you need to change the gateway IP, you would do it using /etc/mailips file and changing there for the *: IP# option where IP# would be your new IP number.

    This would appear to be related to your prior thread on this issue:

    http://forums.cpanel.net/f5/changing-main-ip-trial-license-226481.html#post932162

    At this point, it would be a good idea to open a ticket. Please note that we do not charge for complimentary tickets when you have root login information for the machine. It would seem that it would be a better course of action over possibly breaking email functioning on your machine.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice