Bug #569

Video5 "apache user can't write in this directory."

Added by scales about 11 years ago. Updated over 7 years ago.

Target version:
Start date:
Due date:
% Done:



when you click to encode a video you get an error.
"apache user can't write in this directory."


#1 Updated by scales about 11 years ago

This only happens with shares on a secondary drive due to wrong permissions and ownership. Must chown new share admin:users and chmod new share 775

#2 Updated by gboudreau about 11 years ago

This will happen on normal shares too, since apache is not part of the 'users' group by default (right?)
So it won't have write access to the shares.

The good way to fix this would be to use sudo for encodes, and installscript should give the apache user the right to call sudo with nopasswd (and no tty) to call HandbrakeCLI. The encode script should, when the encode is complete, chown/chgrp/chmod the new file to have the same owner/permissions as the original file.

#3 Updated by cpg about 11 years ago

apache is running with it's primary group being "users" starting recenty

this was added on Wed Jun 16 13:45:13 2010 and released later as part of the 5.4 release;a=commitdiff;h=5ea856173f0aeb984c0a7bfa221c495bab0ff195

did you install after that time, scales?

#4 Updated by gboudreau about 11 years ago

Ah, good. I didn't remember that.
Then his problem was only that his folder was root:root and 775 in the first place.

#5 Updated by bigfoot65 over 7 years ago

  • Status changed from New to Closed

No longer valid.

Also available in: Atom