From: Peter Amstutz Date: Wed, 23 Sep 2015 17:00:08 +0000 (-0400) Subject: 7228: Set umask to 002 so cache files are created writable other processes with same... X-Git-Tag: 1.1.0~1344^2 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/6d352c4bfe2d0e9a405a52863c28b00de47f4be5 7228: Set umask to 002 so cache files are created writable other processes with same GID. --- diff --git a/services/api/script/crunch-dispatch.rb b/services/api/script/crunch-dispatch.rb index 27cb82115b..4a1fdbce75 100755 --- a/services/api/script/crunch-dispatch.rb +++ b/services/api/script/crunch-dispatch.rb @@ -1,5 +1,9 @@ #!/usr/bin/env ruby +# We want files written by crunch-dispatch to be writable by other processes +# with the same GID, see bug #7228 +File.umask(0002) + require 'shellwords' include Process @@ -747,6 +751,7 @@ class Dispatcher def run act_as_system_user + User.first.group_permissions $stderr.puts "dispatch: ready" while !$signal[:term] or @running.size > 0 read_pipes