Welcome to the new Linux Foundation Forum!

chattr +a can not run

IrengeIrenge Posts: 3
edited February 2018 in LFS201 Class Forum

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

  • coopcoop Posts: 286

    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.

  • coopcoop Posts: 286
    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.

Sign In or Register to comment.