ZM 1.22.0 Problems with shared memory. And su.
ZM 1.22.0 Problems with shared memory. And su.
Hi i've got some problems with 1.22.0 here are the erros:
Feb 7 13:56:47 surveilance zmpkg[21249]: ERR [Unable to find valid 'su' syntax]
And lots of these:
Feb 7 13:58:26 surveilance zmu[21340]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
I've tryed to increase memory now its:
shmall: 154217728
shmmax: 154217728
How much memory do i have to set here and how to fix the invalid syntax?
/Roy
Feb 7 13:56:47 surveilance zmpkg[21249]: ERR [Unable to find valid 'su' syntax]
And lots of these:
Feb 7 13:58:26 surveilance zmu[21340]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
I've tryed to increase memory now its:
shmall: 154217728
shmmax: 154217728
How much memory do i have to set here and how to fix the invalid syntax?
/Roy
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
- tech_fixer
- Posts: 132
- Joined: Tue Jul 29, 2003 3:07 pm
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
tech_fixer wrote:My best advice: use a more thoroughly tested Linux distribution as your plattform. I'm using Fedora Core 4 and it works wonderfully. Only took me 2 hours to set everything up from scratch.
And with Cordel's RPM, it should be even a quicker install!
Regards,
Jose.
Well i don't like RedHat/Fedora, and found that the only distro i like is gentoo, i did however try the Livecd but i didn't get any picture. And all of my computers witch is runnig linux is running gentoo
Ok with debug level 1 here it is:
/var/log/messages
Feb 8 22:48:38 surveilance zmpkg[25194]: INF [Command: start]
Feb 8 22:48:38 surveilance su(pam_unix)[25197]: session opened for user apache by (uid=0)
Feb 8 22:48:38 surveilance su(pam_unix)[25197]: session closed for user apache
Feb 8 22:48:38 surveilance su(pam_unix)[25199]: session opened for user apache by (uid=0)
Feb 8 22:48:38 surveilance su(pam_unix)[25199]: session closed for user apache
Feb 8 22:48:38 surveilance zmpkg[25194]: ERR [Unable to find valid 'su' syntax]
zmpkg.log
02/08/06 22:48:38.813011 zmpkg[25194].INF [Command: start]
02/08/06 22:48:38.828974 zmpkg[25194].DBG [Testing valid shell syntax]
02/08/06 22:48:38.829740 zmpkg[25194].DBG [Testing 'su apache -c 'true'']
02/08/06 22:48:38.944176 zmpkg[25194].DBG [Test failed, '']
02/08/06 22:48:38.944717 zmpkg[25194].DBG [Testing 'su apache --shell=/bin/sh --command='true'']
02/08/06 22:48:38.970428 zmpkg[25194].DBG [Test failed, '']
02/08/06 22:48:38.970922 zmpkg[25194].ERR [Unable to find valid 'su' syntax]
/var/log/messages
Feb 8 22:48:38 surveilance zmpkg[25194]: INF [Command: start]
Feb 8 22:48:38 surveilance su(pam_unix)[25197]: session opened for user apache by (uid=0)
Feb 8 22:48:38 surveilance su(pam_unix)[25197]: session closed for user apache
Feb 8 22:48:38 surveilance su(pam_unix)[25199]: session opened for user apache by (uid=0)
Feb 8 22:48:38 surveilance su(pam_unix)[25199]: session closed for user apache
Feb 8 22:48:38 surveilance zmpkg[25194]: ERR [Unable to find valid 'su' syntax]
zmpkg.log
02/08/06 22:48:38.813011 zmpkg[25194].INF [Command: start]
02/08/06 22:48:38.828974 zmpkg[25194].DBG [Testing valid shell syntax]
02/08/06 22:48:38.829740 zmpkg[25194].DBG [Testing 'su apache -c 'true'']
02/08/06 22:48:38.944176 zmpkg[25194].DBG [Test failed, '']
02/08/06 22:48:38.944717 zmpkg[25194].DBG [Testing 'su apache --shell=/bin/sh --command='true'']
02/08/06 22:48:38.970428 zmpkg[25194].DBG [Test failed, '']
02/08/06 22:48:38.970922 zmpkg[25194].ERR [Unable to find valid 'su' syntax]
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
I tihnk i know whats wrong
su apache --shell=/bin/sh --command='true'' <- one too many of '
Here is goes:
surveilance zoneminder # su apache -c 'true'
surveilance zoneminder # su apache --shell=/bin/sh --command='true''
>
surveilance zoneminder # su apache --shell=/bin/sh --command='true'
surveilance zoneminder #
su apache --shell=/bin/sh --command='true'' <- one too many of '
Here is goes:
surveilance zoneminder # su apache -c 'true'
surveilance zoneminder # su apache --shell=/bin/sh --command='true''
>
surveilance zoneminder # su apache --shell=/bin/sh --command='true'
surveilance zoneminder #
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
I think that was just me making a cut'n'paste typo. Actually what we need to know is whwther the command succeeded, so try this
Code: Select all
su apache -c 'true'
echo $?
su apache --shell=/bin/sh --command='true'
echo $?
Phil
- lazyleopard
- Posts: 403
- Joined: Tue Mar 02, 2004 6:12 pm
- Location: Gloucestershire, UK
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
- lazyleopard
- Posts: 403
- Joined: Tue Mar 02, 2004 6:12 pm
- Location: Gloucestershire, UK
Try using vipw to edit /etc/passwd, changing to
Code: Select all
apache:x:81:81:apache:/www:/bin/false
Code: Select all
apache:x:81:81:apache:/www:/bin/bash
Rick Hewett