Create a shared memory segment with specific permissions (default is 0644)

ipcmk

ipcmk --shmem {{segment_size_in_bytes}} {{octal_permissions}}

click the source code to copy install ipcmk on any operating system with command-not-found.com