-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 John Molohan wrote: > Duncan Webb wrote: >> Frank [Antispam account] wrote: >> >>> Hi Duncan, >>> >>> I'm still having this problem. >>> When rebooting the machine of running Xine as root, the permissions are set >>> back to 660 on the xine-log files. >>> >>> Is the a way to fix this or do I have to contact the Xine-lists? >>> >> Yes you can fix this. >> mkdir /var/log/freevo >> chown -R freevo:freevo /var/log/freevo >> chmod -R g+w /var/log/freevo >> chmod g+s /var/log/freevo >> >> If you delete logs on a reboot you need to make sure that they have the >> correct permissions and that root has umask 0002. >> >> Then when root creates a file in /var/log/freevo it will have the group >> of freevo and will be group writeable. >> >> This is really an system administration problem, rather than freevo's or >> xine's because you running freevo with root and then the user freevo. >> >> HTH >> Duncan >> >> >>> -----Oorspronkelijk bericht----- >>> Van: [EMAIL PROTECTED] >>> [mailto:[EMAIL PROTECTED] Namens Duncan Webb >>> Verzonden: 04 June 2007 07:27 >>> Aan: freevo-devel@lists.sourceforge.net >>> Onderwerp: Re: [Freevo-devel] Starting DVD gives Crash on perm denied >>> errolog! >>> >>> >>>> Running the last svn I get: >>>> >>>> Traceback (most recent call last): >>>> File "/usr/lib/python2.4/site-packages/freevo/main.py", line 290, in >>>> eventhandler >>>> app.eventhandler(event) >>>> File "/usr/lib/python2.4/site-packages/freevo/menu.py", line 673, in >>>> eventhandler >>>> action( arg=arg, menuw=self ) >>>> File "/usr/lib/python2.4/site-packages/freevo/video/videoitem.py", >>>> line 560, in play >>>> error = self.player.play(mplayer_options, self) >>>> File >>>> "/usr/lib/python2.4/site-packages/freevo/video/plugins/xine.py", >>>> line >>>> 189, in play >>>> self.app = XineApp(command, self) >>>> File >>>> "/usr/lib/python2.4/site-packages/freevo/video/plugins/xine.py", >>>> line >>>> 367, in __init__ >>>> childapp.ChildApp2.__init__(self, command) >>>> File "/usr/lib/python2.4/site-packages/freevo/childapp.py", line >>>> 322, in __init__ >>>> ChildApp.__init__(self, app, debugname, doeslogging) >>>> File "/usr/lib/python2.4/site-packages/freevo/childapp.py", line >>>> 114, in __init__ >>>> self.stdout_log = doeslogging and open(stdout_logger, 'w') or None >>>> IOError: [Errno 13] Permission denied: '/var/log/freevo/xine-stdout.log' >>>> Crash! >>>> >>>> >>>> What happened: >>>> Installed the lastest version as root >>>> Starting freevo as root. >>>> Playing movies >>>> Logging off as root >>>> Loggin as user freevo >>>> Starting freevo >>>> Playing movies --> Crash! >>>> >>>> The log xine-stdout.log is created by root and the user freevo gets an >>>> permission denied. >>>> I don't know if this is something to fix (a chmod 777 on the file >>>> fixes it), but informing doesn't hurt. >>>> >>> Well if you normally run freevo as user freevo then the directories >>> /var/log/freevo and /var/cache/freevo should be owned by freevo. >>> >>> Do a: >>> chown -R freevo:freevo /var/log/freevo /var/cache/freevo chmod g+sw >>> /var/log/freevo /var/cache/freevo >>> >>> That is assuming that freevo is in the group freevo. id freevo will tell you >>> if this is the case. >>> >>> Duncan >>> > Would it not be better to bring the xine/df_xine/mplayer-stdout/stderr > in line with the rest of freevo's logs by appending the -uid number to > the end of the file name? This would separate out the logs for different > users and allow Frank to run it as any user without changing perms.
Good idea, and it is now added to svn at r9761. The directory will still need to have the correct permissions for the freevo user otherwise the user won't be able to write to this directory. Duncan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGo170Ni6l+Xvys44RAiU+AJ97mi1rcUUMz9KyTsQYCRbBIjmDqgCfQ2cW SbF48EQuyI9dAiizzyoWHiU= =K7LQ -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel