mkdir(events/4): Permission denied

Support and queries relating to all previous versions of ZoneMinder
Locked
bhomass
Posts: 103
Joined: Sat Jun 11, 2005 6:54 pm

mkdir(events/4): Permission denied

Post by bhomass »

I am adding monitor on the console and got :

Warning: mkdir(events/4): Permission denied in /var/www/html/zm/zm_actions.php on line 234


Warning: symlink(): Permission denied in /var/www/html/zm/zm_actions.php on line 236

each time. after a search, it seems these are bugs supposedly fixed in version 1.20.1. I am using 1.21.0, running on Suse 9.3.

do these warning matter? how to remove them?

Thanks
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Re: mkdir(events/4): Permission denied

Post by cordel »

bhomass wrote:I am adding monitor on the console and got :
Warning: mkdir(events/4): Permission denied in /var/www/html/zm/zm_actions.php on line 234
Warning: symlink(): Permission denied in /var/www/html/zm/zm_actions.php on line 236
Check your permissions for the event folder that the web user (same user and group you used in the configure for zm) can READ and WRITE.
Regards,
Cordel
bhomass
Posts: 103
Joined: Sat Jun 11, 2005 6:54 pm

Post by bhomass »

I checked. the event dir has apache:apache for u&g, in agreement with configure setting (default). nevertheless, I did a chmod o+w, and got rid of the waring messages. why is that? is zm running as some one else?

Thanks
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

ZM will run as whom ever you configure it for but needs to be the same user and group that the web server is running. which varies depending of the flavor of linux.
bhomass
Posts: 103
Joined: Sat Jun 11, 2005 6:54 pm

Post by bhomass »

your are right. they default to wwwrun:www. I changed them to apache:apache

Thanks for the directions
Locked