apache - Linux: share permissions between users for SVN folders -



apache - Linux: share permissions between users for SVN folders -

on ubuntu machine i've setup svn repository, served apache. svn repository folders , subfolders (located under /var/svn/repos/) belongs www-data user , group:

drwxr-xr-x 7 www-data www-data 4096 gen 21 10:38 software_repository

www-data apache user. next i've cron job makes nightly svnadmin dump of repository, using home user, let's john_doe (joining www-data grouping too). svnadmin dump command (and more...) contained in sh file called crond. during cron job or launching manually using user john_doe get:

svnadmin: e160052: revprop caching '/var/svn/repos/sw/software_repository/db' disabled because shm infrastructure revprop caching failed initialize. svnadmin: e000013: can't open file '/var/svn/repos/sw/software_repository/db/rev-prop-atomics.mutex': permission denied

because of permission denied error, i've run same sh script prepending sudo command, , works fine. so, have 2 possibilities:

understand svn error come from. change permissions in right way john_doe user, used cron.

for point #1 i've done google search i've found nothing... point #2, think right way not set permissions (recursively) of grouping www-data svn folders , subfolders. done share permissions on svn folders between www-data user , john_doe. or give www-data grouping same permissions (recursively) of www-data user. or else, both solutions i've no thought of right command or configuration setting.

solved running command:

chmod -r g=u software_repository

this prepare solution 2. way i've no clue svn errors come from...

linux apache svn cron

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -