getting permission denied with shmat() as non-root

2011-08-27 Thread Timothy Stotts
I am writing software that will execute on a customized Debian Linux and also on an embedded POSIX system. On the embedded system, I execute the code as root. On the Debian system, I execute the code as my non-root user account. This is the normal usage of the application. I am using ftok(), shmge

Re: getting permission denied with shmat() as non-root

2011-08-29 Thread Timothy Stotts
. Obviously, it should be 0660 or something similar, so I corrected the issue by or'ing the permissions with the create flags as the last argument to the function shmget(). Cheers. Timothy Stotts On Sun, 2011-08-28 at 21:11 +1000, Peter Miller wrote: > On Sat, 2011-08-27 at 20:44 -0400,