diff --git a/src/sandbox/mod.rs b/src/sandbox/mod.rs index 12582f9..c6bfb95 100644 --- a/src/sandbox/mod.rs +++ b/src/sandbox/mod.rs @@ -461,7 +461,7 @@ fn sandbox_path_parent(linux_path: &str) -> Option<&str> { fn ensure_sandbox_dir(sandbox: &str, dir: &str) -> Result<()> { let dir_q = shell_words::quote(dir); - let cmd = format!("sudo mkdir -p {dir_q} && sudo chown agent:agent {dir_q}"); + let cmd = format!("sudo mkdir -p {dir_q} && sudo chown -R agent:agent {dir_q}"); debug!("sbx exec {sandbox}: {cmd}");