The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to writable a read only file?

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

  1. Deker

    Deker Well-Known Member

    Joined:
    Feb 15, 2011
    Messages:
    79
    Likes Received:
    1
    Trophy Points:
    8
    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:
    447
    Likes Received:
    4
    Trophy Points:
    18
    Location:
    PK
    cPanel Access Level:
    DataCenter Provider
    Use the opposite to remove the immutable attributes.

    Code:
    chattr -aui /etc/exim.conf
     
  3. Deker

    Deker Well-Known Member

    Joined:
    Feb 15, 2011
    Messages:
    79
    Likes Received:
    1
    Trophy Points:
    8
    Worked
    Thank you :)
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    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.
     
Loading...

Share This Page