Welcome to the Linux Foundation Forum!

chattr +a can not run

Irenge
Irenge 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

 

 

 

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

  • coop
    coop 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.

  • coop
    coop 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.

Categories

Upcoming Training