Score:0

CentOS keeps making an executable immutable

kr flag

I am on Cent OS 7

NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

I have installed nodejs in this machine.For some reason,node executable (/usr/bin/node) keeps becoming immutable and prevented from execution.All other executables run well (e.g curl) I keep removing the immutable property using sudo chattr -i /usr/bin/node but in 2-3 seconds file becomes immutable (I confirmed using lsattr) trying to execute it returns "Operation not permitted". It keeps happening. I can't find the root cause? What I could be causing this? I am new to environment

berndbausch avatar
us flag
The system call that manipulates the immutable bit seems to be [ioctl_iflags](https://man7.org/linux/man-pages/man2/ioctl_iflags.2.html). You could set up auditing for this system call.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.