On Thu, 20 Jul 2000, daniel sheltraw wrote:

> module. If I execute the user-space program as root all works fine but if I 
> execute it as a user the shared-memory allocation fails. What do I need to 
> do to get this to work?

Create new group "memaccess"

#if you are using mbuff do as root:
chgrp memaccess /dev/mbuff
chmod g+rw /dev/mbuff

#else
#if you get shared memory by mmapping /dev/mem, do as root:

mknod /dev/memmap  c 1 2
chgrp memaccess /dev/memmap
chmod g+rw /dev/memmap
change your program to use /dev/memmap instead of /dev/mem

#else
#error I do not know how do you get shared memory
#endif
#endif


add all users which should be able to mmap memory to "memaccess" group. After
new log-in it should work.

Best regards,
--
Tomek

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to