@runuai/host 0.9.102 → 0.9.103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/engine-accounts.ts +10 -0
- package/package.json +1 -1
package/lib/engine-accounts.ts
CHANGED
|
@@ -537,6 +537,16 @@ async function copyDirInto(
|
|
|
537
537
|
}
|
|
538
538
|
};
|
|
539
539
|
await run(["/bin/mkdir", "-p", containerDir], `mkdir ${containerDir}`);
|
|
540
|
+
// The mkdir above runs as root, but a MACHINE copy extracts as the ssh
|
|
541
|
+
// user (node) — into a root-owned directory it dies with "Cannot open:
|
|
542
|
+
// Permission denied" and the account never authenticates (live
|
|
543
|
+
// 2026-09-07, first scoped Codex account on the shared host). Hand the
|
|
544
|
+
// directory to node BEFORE the copy; this also repairs a directory an
|
|
545
|
+
// earlier failed attempt left root-owned on a still-running machine.
|
|
546
|
+
await run(
|
|
547
|
+
["/bin/chown", "-R", "node:node", containerDir],
|
|
548
|
+
`chown -R node:node ${containerDir}`,
|
|
549
|
+
);
|
|
540
550
|
await environment.copy({
|
|
541
551
|
direction: "into",
|
|
542
552
|
source: hostDir,
|