I set my
/etc/fstab file in this way:
proc /proc proc defaults 0 0 /dev/mmcblk0p1 /boot vfat defaults,ro 0 2 /dev/mmcblk0p2 / ext4 defaults,noatime,ro 0 1 tmpfs /tmp tmpfs nosuid,nodev 0 0 tmpfs /var/log tmpfs nosuid,nodev 0 0 tmpfs /var/tmp tmpfs nosuid,nodev 0 0
It works, but I have a problem with
/tmp which has the following permissions:
stat -c "%a %n" /tmp 755 /tmp
As far as I know the default should be 1777, and I need this settings because I want to write some files there as normal user.
I tried to set the mode value in fstab:
tmpfs /tmp tmpfs nosuid,nodev,mode=1777 0 0
with no effects.
chmod 1777 /tmp works fine but only until a reboot.
I'm running Debian Jessie on RPi3. What is the right way to set permissions on a tmpfs?