BTW, in addition to the open() function call, below, there are a few other spots that need new O_CREAT permissions...Just do a search thru app_rpt.c for the string ",0600" to find them. Change those permissions for something friendlier (like: 0644) and recompile. On Thu, 21 Jul 2016, David McGough wrote:
Hi Tom,
Currently, the file permissions are hard-coded in the stock version of the app_rpt.c code. See line #22084 of app_rpt.c:
fd = open(fname,O_WRONLY | O_CREAT | O_APPEND,0600);
So, only the file owner has read/write permission.
With the stock code, using chmod (perhaps from a cron script?) is the simplest solution.
73, David KB4FXC
On Thu, 21 Jul 2016, Tom Hayward wrote:
I setup archivedir and am successfully getting recordings. I want to allow access to these recordings on a web server. The recordings are in the web root and I can browse them. When I try to download a recording, I get permission denied because the recording files do not have world-read and are owned by root. A chmod solves this, but only for old recordings. New files still get mode 0600. How can I change the mode of new files?
Tom KD7LXL
_______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button" You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.