changing permissions for shared memory