How to remove a file attribute with chattr linux?How can I “cat” a file and remove commented lines?How do...

What are the limits on an impeached and not convicted president?

Selecting next occurrence of word incrementally

Find the number for the question mark

Coffee Grounds and Gritty Butter Cream Icing

In 1700s, why was 'books that never read' grammatical?

How long could a human survive completely without the immune system?

Python Bingo game that stores card in a dictionary

Venn diagrams show + - = underneath

How to be productive while waiting for meetings to start, when managers are casual about being late

What does it take to recreate microchips like 68000 and 6502 in their original process nodes nowadays?

Can something have more sugar per 100g than the percentage of sugar that's in it?

An example of a "simple poset" which does not belong to a convex polytope

I've been fired, was allowed to announce it as if I quit and given extra notice, how to handle the questions?

Go (to / in) your own way

Is having your hand in your pocket during a presentation bad?

How to prove (A v B), (A → C), (B → D) therefore (C v D)

Is negative resistance possible?

PhD research results in postdoc talk presentation

How slow was the 6502 BASIC compared to Assembly

"To Verb a Noun"

What are the most important factors in determining how fast technology progresses?

What should I do if I find a mistake in my submitted master's thesis?

Can someone identify this old round connector?

Why is the time of useful consciousness only seconds at high altitudes, when I can hold my breath much longer at ground level?



How to remove a file attribute with chattr linux?


How can I “cat” a file and remove commented lines?How do I make a file NOT modifiable?Delete/repair files with weird permissions/owner/groupI need to make a file undeleteable, but allow it to be modifiable and renameableRemove infront of word with ifWhy are my crontab user files immutable and doesn't get executed even after changing attribute to mutable?Delete file which matches a pattern using linux commandSetting noatime via mount options vs no atime updates (A) file attribute






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}








0















I have file that has the immutable attribute:



----ia-------e--


And I try to remove the attribute with



chattr -i file.php / chattr -a file.php


but it's not working. The file modified by old server admin.

What would be the correct command to remove ?










share|improve this question









New contributor



Hendra Setyawan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






















  • Are you running chattr as root? What response is there from chattr? Do you have SELinux or anything similar in use?

    – Philip Kendall
    28 mins ago











  • Yes, i login server as root sir, not have any respon when run chattr -i file.html and selinux disabled

    – Hendra Setyawan
    21 mins ago




















0















I have file that has the immutable attribute:



----ia-------e--


And I try to remove the attribute with



chattr -i file.php / chattr -a file.php


but it's not working. The file modified by old server admin.

What would be the correct command to remove ?










share|improve this question









New contributor



Hendra Setyawan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






















  • Are you running chattr as root? What response is there from chattr? Do you have SELinux or anything similar in use?

    – Philip Kendall
    28 mins ago











  • Yes, i login server as root sir, not have any respon when run chattr -i file.html and selinux disabled

    – Hendra Setyawan
    21 mins ago
















0












0








0








I have file that has the immutable attribute:



----ia-------e--


And I try to remove the attribute with



chattr -i file.php / chattr -a file.php


but it's not working. The file modified by old server admin.

What would be the correct command to remove ?










share|improve this question









New contributor



Hendra Setyawan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I have file that has the immutable attribute:



----ia-------e--


And I try to remove the attribute with



chattr -i file.php / chattr -a file.php


but it's not working. The file modified by old server admin.

What would be the correct command to remove ?







linux bash shell-script centos ssh






share|improve this question









New contributor



Hendra Setyawan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share|improve this question









New contributor



Hendra Setyawan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share|improve this question




share|improve this question








edited 20 mins ago







Hendra Setyawan













New contributor



Hendra Setyawan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








asked 30 mins ago









Hendra SetyawanHendra Setyawan

11 bronze badge




11 bronze badge




New contributor



Hendra Setyawan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




New contributor




Hendra Setyawan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















  • Are you running chattr as root? What response is there from chattr? Do you have SELinux or anything similar in use?

    – Philip Kendall
    28 mins ago











  • Yes, i login server as root sir, not have any respon when run chattr -i file.html and selinux disabled

    – Hendra Setyawan
    21 mins ago





















  • Are you running chattr as root? What response is there from chattr? Do you have SELinux or anything similar in use?

    – Philip Kendall
    28 mins ago











  • Yes, i login server as root sir, not have any respon when run chattr -i file.html and selinux disabled

    – Hendra Setyawan
    21 mins ago



















Are you running chattr as root? What response is there from chattr? Do you have SELinux or anything similar in use?

– Philip Kendall
28 mins ago





Are you running chattr as root? What response is there from chattr? Do you have SELinux or anything similar in use?

– Philip Kendall
28 mins ago













Yes, i login server as root sir, not have any respon when run chattr -i file.html and selinux disabled

– Hendra Setyawan
21 mins ago







Yes, i login server as root sir, not have any respon when run chattr -i file.html and selinux disabled

– Hendra Setyawan
21 mins ago












0






active

oldest

votes













Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});







Hendra Setyawan is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded
















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f544395%2fhow-to-remove-a-file-attribute-with-chattr-linux%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes









Hendra Setyawan is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded

















Hendra Setyawan is a new contributor. Be nice, and check out our Code of Conduct.













Hendra Setyawan is a new contributor. Be nice, and check out our Code of Conduct.












Hendra Setyawan is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f544395%2fhow-to-remove-a-file-attribute-with-chattr-linux%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...