Incorrect permissions on /dev/shm (CentOS 6)
VM type: KVM
/dev/shm gets incorrect permissions on boot. It should be mounted 1777, but is 0755 instead.
I guess I could put something in /etc/rc.local to fix it after boot, but I'm wondering if there's a "better" way. Ideas appreciated
[root@sal:~] ls -ld /dev/shm
drwxr-xr-x 2 root root 40 Apr 1 08:38 /dev/shm
[root@sal:~] cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Sun Mar 9 13:40:48 2014
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/sda / ext4 noatime,errors=remount-ro 0 1
/dev/sdb none swap sw 0 0
tmpfs /dev/shm tmpfs nodev,nosuid,noexec,mode=1777 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
/proc /proc proc defaults 0 0
[root@sal:~] mount
/dev/sda on / type ext4 (rw,noatime,errors=remount-ro)
/proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)