{"id":1784,"date":"2015-02-06T01:00:40","date_gmt":"2015-02-06T01:00:40","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=1784"},"modified":"2015-02-06T01:00:40","modified_gmt":"2015-02-06T01:00:40","slug":"cannot-edit-etcmailips-cpanel-server","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2015\/02\/06\/cannot-edit-etcmailips-cpanel-server\/","title":{"rendered":"Cannot edit \/etc\/mailips on cPanel Server"},"content":{"rendered":"<p>Check \/etc\/mailips permissions:<\/p>\n<p>Code:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# ls -lah \/etc\/mailips\n\n<\/pre>\n<p>It should show the following:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# ls -lah \/etc\/mailips\n-rw-r----- 1 root mail 0 Mar 11 21:40 \/etc\/mailips\n\n<\/pre>\n<p>If it does not show root:mail for ownership, then fix that:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# chown root:mail \/etc\/mailips\n\n<\/pre>\n<p>If it doesn&#8217;t show 640 for file permissions, fix that:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# chmod 640 \/etc\/mailips\n\n<\/pre>\n<p>If it does have the right ownership and permissions, then next check the file isn&#8217;t set to be immutable:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# lsattr \/etc\/mailips\n\n<\/pre>\n<p>It might look like the following if it is okay:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# lsattr \/etc\/mailips\n-------A----- \/etc\/mailips\n\n<\/pre>\n<p>Or below if it is unwritable<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# lsattr \/etc\/mailips\n----i--------e- \/etc\/mailips\n<\/pre>\n<p>An uppercase A is fine. If it has a lowercase i or a lowercase a, then it isn&#8217;t fine, and those need removed:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# chattr -ia \/etc\/mailips\n\n<\/pre>\n<p>Now it looks like<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# lsattr \/etc\/mailips\n-------------e- \/etc\/mailips\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Check \/etc\/mailips permissions: Code: # ls -lah \/etc\/mailips It should show the following: # ls -lah \/etc\/mailips -rw-r&#8212;&#8211; 1 root mail 0 Mar 11 21:40 \/etc\/mailips If it does not show root:mail for ownership, then fix that: # chown root:mail \/etc\/mailips If it doesn&#8217;t show 640 for file permissions, fix that: # chmod 640 \/etc\/mailips &#8230; <a title=\"Cannot edit \/etc\/mailips on cPanel Server\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2015\/02\/06\/cannot-edit-etcmailips-cpanel-server\/\" aria-label=\"Read more about Cannot edit \/etc\/mailips on cPanel Server\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,123],"tags":[],"class_list":["post-1784","post","type-post","status-publish","format-standard","hentry","category-cpanel","category-whm"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/1784","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=1784"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/1784\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=1784"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=1784"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=1784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}