About 631,000 results
Open links in new tab
  1. What' the differences between `chattr +i FILE` and `chmod -w FILE`?

    Feb 2, 2018 · chattr +i sets the immutable filesystem attribute on the file. It differs from access control rules. Access control rules apply to the file attributes, while immutable is a filesystem …

  2. debian - How to set `chattr +i` for my `/etc/resolv.conf `? - Unix ...

    Feb 5, 2018 · Or chattr +i /etc/resolv.conf after making it a static file instead of a symlink, but beware that whatever tries to write it, might not like the resulting errors.

  3. What is the effect of "chattr +a" on a directory

    The a Linux file attribute is often documented as applicable to files. chattr(1) manpage: A file with the 'a' attribute set can only be open in append mode for writing. ext4 wiki: 0x20 File...

  4. Chattr failing with Inappropriate ioctl for device on BTRFS

    Nov 25, 2024 · chattr: read flags of '.dir': Inappropriate ioctl for device here is how my directory is mounted, it is on a btrfs filesystem and the mount is because I use impermanence on my system

  5. chattr +i: chattr: Operation not permitted while setting flags

    Oct 9, 2022 · I am trying to set an immutable attribute on some files that are in my home directory. But I keep getting: chattr +i test.txt chattr: Operation not permitted while setting flags on test.txt …

  6. What is `chattr +x` used for? - Unix & Linux Stack Exchange

    Mar 23, 2023 · The chattr(1) manpage describes the x attribute as: x The 'x' attribute can be set on a directory or file. If the attri‐ bute is set on an existing directory, it will be inherited b...

  7. Cannot change file permission of "/usr/bin/nvidia-smi" via "chattr"

    Jul 23, 2024 · Then I tried to remove the i attribute by sudo chattr -i /usr/bin/nvidia-smi. However, when using lsattr to examine the attributes again, it shows the same result.

  8. How to make a symlink read only (`chattr +i /location/symlink`)?

    May 13, 2020 · How can we lock a symlink so it cannot be deleted? With a normal file/directory chattr +i /file/location can achieve this but doing so with a symlink we get chattr: Operation not …

  9. Make script with chattr -i executable without sudo

    May 18, 2025 · sudo chattr -i /etc/resolv.conf uh, big red flag: you're trying to solve a resolver configuration problem in the least sensible way here. Instead of doing all this, I'd recommend …

  10. r - Use chattr in Rstudio - Stack Overflow

    Apr 26, 2024 · I would like to test the newest chattr package to run an LLM model in Rstudio. Unfortunately, I'm not able to run it. I would like to run the llama model. We can download this …