Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    4

    Default I have problem with file permition

    when i try to edit exim.conf i have this error

    [ Error writing /etc/exim.conf: Operation not permitted ]

  2. #2
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,554
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    What is the username being used to access and attempt editing the Exim configuration file?

    Where exactly is the message being displayed at?

    Via root SSH access, please run the following commands and post the resulting output:
    Code:
    # stat /etc/exim.conf
    # lsattr /etc/exim.conf

  3. #3
    Registered User
    Join Date
    Mar 2009
    Posts
    4

    Default

    Quote Originally Posted by cPanelDon View Post
    What is the username being used to access and attempt editing the Exim configuration file?

    Where exactly is the message being displayed at?

    Via root SSH access, please run the following commands and post the resulting output:
    Code:
    # stat /etc/exim.conf
    # lsattr /etc/exim.conf
    I have this error when i try to edit the file from the shell with root access
    and i have the message when i try to save the file


    stat /etc/exim.conf

    File: `/etc/exim.conf'
    Size: 43596 Blocks: 88 IO Block: 4096 regular file
    Device: 811h/2065d Inode: 98403945 Links: 1
    Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
    Access: 2009-11-20 22:35:04.000000000 +0200
    Modify: 2009-11-18 12:42:40.000000000 +0200
    Change: 2009-11-19 01:13:51.000000000 +0200
    lsattr /etc/exim.conf


    -u---a------- /etc/exim.conf

  4. #4
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,554
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by msmgaza View Post
    I have this error when i try to edit the file from the shell with root access and i have the message when i try to save the file
    Please note that it is not recommended to manually edit the Exim configuration file ("exim.conf") directly via command-line; custom changes will not be fully saved unless the configuration file is edited properly using the available features at the following menu paths in WHM:

    WHM: Main >> Service Configuration >> Exim Configuration Editor
    Documentation: EximConfig < AllDocumentation/WHMDocs < TWiki
    WHM: Main >> Service Configuration >> Exim Configuration Editor >> Advanced Editor
    Documentation: AdvancedExim < AllDocumentation/WHMDocs < TWiki

    Quote Originally Posted by msmgaza View Post
    Code:
    # lsattr /etc/exim.conf
    -u---a------- /etc/exim.conf
    As seen via the output from "lsattr" (to list attributes) the file has two special attributes set, they are "a" and "u" and are described below as quoted from the Linux manual "man" page for "chattr":
    • A file with the ‘a’ attribute set can only be open in append mode for writing. Only the superuser or a process possessing the CAP_LINUX_IMMUTABLE capability can set or clear this attribute.
    • When a file with the ‘u’ attribute set is deleted, its contents are saved. This allows the user to ask for its undeletion. Note: please make sure to read the bugs and limitations section at the end of this document. ... BUGS AND LIMITATIONS: The ‘c’, ’s’, and ‘u’ attributes are not honored by the ext2 and ext3 filesystems as implemented in the current mainline Linux kernels. These attributes may be implemented in future versions of the ext2 and ext3 filesystems.

    To read the manual or "man" page for "chattr" in full detail, please use the following command:
    Code:
    # man chattr
    To fix the issue and proceed with editing via WHM it will be necessary to remove the special attributes using the utility "chattr" (to change attributes) in a command like the following example:
    Code:
    # chattr -V -au /etc/exim.conf

  5. #5
    Registered User
    Join Date
    Mar 2009
    Posts
    4

    Default

    Thanks for help

Similar Threads & Tags
Similar threads

  1. Problem when uplaod file from File manager
    By teerapol in forum Enkompass Discussions
    Replies: 1
    Last Post: 11-29-2010, 09:13 AM
  2. I never seen this kind of problem before, file manager problem.
    By 5stars in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-09-2007, 09:30 PM
  3. hosts file problem
    By Glasswalker in forum New User Questions
    Replies: 1
    Last Post: 10-26-2005, 12:39 PM
  4. Moved file problem..
    By iwebserv in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-18-2004, 11:04 AM
  5. Core File Problem
    By RandyO in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-18-2003, 02:46 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube