I have a directory of a web application cache and this has the permissions 755 (default), and I configured setfacl additional permissions.

The problem is that when I restart the system, the information is always lost permissions.

As I can preserve them?


none /home/rkmax/myapp/cache tmpfs defaults 0 0

setfacl command:

-R -m rkmax:rwx -m appuser:rwx /home/rkmax/myapp/cache
-dR -m rkmax:rwx -m appuser:rwx /home/rkmax/myapp/cache
  • you cannot preserve anything in that kind of fs, because is temporary filesystem, when you reboot or umount the fs, everything is lost
    – c4f4t0r
    May 22, 2015 at 13:39

2 Answers 2


find your user's UID

id -u username

find your user's GID

id -g username

in /etc/fstab

none /home/rkmax/myapp/cache tmpfs defaults,mode=0775,uid=998,gid=999 0 0



You can put these setfacl commands in /etc/init.d/rc.local (if it uses the inittab style init setup) or equivalent in your system.

  • i think my system uses systemd because is Arch
    – rkmax
    Aug 27, 2013 at 18:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.