Can't shmget: Permission denied

Support and queries relating to all previous versions of ZoneMinder
Locked
stephen
Posts: 1
Joined: Thu Apr 07, 2005 4:46 pm

Can't shmget: Permission denied

Post by stephen »

Hey all,

After quite a few hours I managed to get ZM working, however after a reboot I'm back to square one with this error in the syslog:

Apr 7 17:44:15 noc zmu[390]: ERR [Can't shmget, probably not enough shared memory space free: Permission denied]

I'm sure this is the error I got before, but I can't remember how I fixed it. I've tried increasing the shared memory available as the FAQ suggests, but it's still not working. I'm sure it's just a really small permission error, but I'm unable to get any further debug information.

Any help would be appreciated! :)

Thanks
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Possibly you created the shared memory as root (as would be normal) but now you're trying to run as another user? Do 'ipcs -m' to list the shared memory segments, the permissions will be listed as per files. Also don't forget that there are two different methods for inreasing shared memory space, a temporay one for the current run and a permanent one for after a reboot. Make sure you have done both.

Phil
Locked