fagensden / vlc-shares

Automatically exported from code.google.com/p/vlc-shares
1 stars 1 forks source link

Media File Ownership (Ubuntu 10.10) #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Only media files owned by www-data:www-data can be played. How can media files 
owned by my user (Ex. foo:foo) be made available?

Original issue reported on code.google.com by koe1...@gmail.com on 22 Feb 2011 at 11:30

GoogleCodeExporter commented 8 years ago
DirectoryIterator::__construct(/media/disk1): failed to open dir: Permission 
denied

Original comment by koe1...@gmail.com on 22 Feb 2011 at 11:32

GoogleCodeExporter commented 8 years ago
It's not the ownership the problem. You have to be sure that files and 
directory can have read/execution permission for "Others" so webserver 
(www-data user) can access it.

Example:

/media/disk1 is owned by foo:foo and has 770 as permission mask. If you change 
it to 775 or 777 even webserver can access it and the ownership still is 
foo:foo

770 = read-write-execution for owner, read-write-execution for group, nothing 
for others
775 = read-write-execution for owner, read-write-execution for group, 
read-execution for others
777 = read-write-execution for owner, read-write-execution for group, 
read-write-execution for others

Original comment by ximarx@gmail.com on 22 Feb 2011 at 11:59