File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
services/agent/src/simcore_service_agent/services Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -136,11 +136,16 @@ async def _get_self_container() -> str:
136136
137137async def _ensure_permissions_on_source_dir (source_dir : Path ) -> None :
138138 self_container = await _get_self_container ()
139- await run_command_in_container (
140- self_container ,
141- command = f"chmod -R a+rX '{ source_dir } '" ,
142- timeout = _TIMEOUT_PERMISSION_CHANGES .total_seconds (),
143- )
139+ for command in (
140+ # files will be removed, grant full access to all users
141+ f"chown -R root:root '{ source_dir } '" ,
142+ f"chmod -R 0777 '{ source_dir } '" ,
143+ ):
144+ await run_command_in_container (
145+ self_container ,
146+ command = command ,
147+ timeout = _TIMEOUT_PERMISSION_CHANGES .total_seconds (),
148+ )
144149
145150
146151async def _store_in_s3 (
You can’t perform that action at this time.
0 commit comments