Jason Tackaberry wrote:
> On Thu, 2008-12-18 at 07:58 +1100, Laurence Huizinga wrote:
>> However, just to try freevo out I get the following errors:
> [...]
>> [Errno 13] Permission denied: '/var/log/freevo/main-1000.log'                
>>                                                               
>> [Errno 13] Permission denied: '/var/log/freevo/main-1000.log'                
>>                                                               
> 
> By default freevo tries to write to /var/log/freevo, so you need to make
> sure that this directory exists and that the user you're running freevo
> as can write to it.
> 
> (I never did like thsi default.{)

Exactly what happens is:
If the environment variable FREEVO_LOGDIR is set then this is used
It will try to create and use /var/log/freevo, and if running as
non-root this will fail
Finally, it will try to create ${HOME}/.freevo/log.

I think that the problem is that root created the /var/log/freevo
directory but didn't change the permissions on the directory to 1777. So
the directory exists but is not writeable by the non-root user. A "chmod
1777 /var/log/freevo" will fix this.

The following, I'll add to svn for the next release.

Index: src/config.py
===================================================================
--- src/config.py       (revision 11224)
+++ src/config.py       (working copy)
@@ -353,12 +353,14 @@
         try:
             print 'trying "%s"...' % (freevo_dirname)
             os.makedirs(freevo_dirname)
+            os.chmod(freevo_dirname, 01777)
         except OSError:
             freevo_dirname = os.path.join(os.environ['HOME'],
'.freevo', private_dir)
             if not os.path.isdir(freevo_dirname):
                 try:
                     print 'trying "%s"...' % (freevo_dirname)
                     os.makedirs(freevo_dirname)
+                    os.chmod(freevo_dirname, 0755)
                 except OSError, e:
                     print 'Warning: %s does not exists and can\'t be
created' % freevo_dirname
                     print 'Please create this directory as root and set
permissions for the'

Duncan

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to