Welcome to the Linux Foundation Forum!

chattr +a can not run

Posts: 4

Hi there,

I use Fedora 27. I was doing the lab on chattr . When I hit the command

chattr +a /tmp/appendit

It returns

chattr: Inappropriate ioctl for device while reading flags on /tmp/appendit

Any idea on how to tackle this issue please

Thanks

 

 

 

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Comments

  • Observe the output of df -h abd you will see it like below

    tmpfs                       3.9G   96K  3.9G   1% /tmp

    tmpfs means /tmp is mounted using RAM. You cannot set this extended attrributes on tmpfss

  • Posts: 916

    If you type :  systemctl mask tmp.mount   and then reboot, /tmp will no longer be mounted in RAM.  I always do that and keep my eyes on cleaning up tmp, I run scripts to do that.  I don't like it going into memory as some apps still put too much in /tmp by default.

  • Posts: 916
    edited February 2018

    If you type :  systemctl mask tmp.mount   and then reboot, /tmp will no longer be mounted in RAM.  I always do that and keep my eyes on cleaning up tmp, I run scripts to do that.  I don't like it going into memory as some apps still put too much in /tmp by default.

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training