Skip to content

fix(docker): set nemoclaw-start permissions to 755 for sandbox readability (fixes #622) - #635

Merged
cv merged 2 commits into
NVIDIA:mainfrom
craigamcw:fix/nemoclaw-start-permissions-622
Mar 30, 2026
Merged

cv merged 2 commits into
NVIDIA:mainfrom
craigamcw:fix/nemoclaw-start-permissions-622

Conversation

@craigamcw

@craigamcw craigamcw commented Mar 22, 2026 •

Copy link
Copy Markdown
Contributor

The nemoclaw-start script had 0711 permissions after chmod +x in the Dockerfile. The sandbox user (uid=999) could execute but not read the file, causing bash to fail with "Permission denied" (exit 126) since bash needs read access to interpret scripts.

Summary

Fix nemoclaw-start script permissions from 0711 to 0755 so the sandbox user can read and execute it. Bash needs read access to interpret scripts; execute-only causes "Permission denied" (exit 126).

Related Issue

Fixes #622

Changes

  • Change chmod +x to chmod 755 for /usr/local/bin/nemoclaw-start in Dockerfile.

Type of Change

  • Code change for a new feature, bug fix, or refactor.
  • Code change with doc updates.
  • Doc only. Prose changes without code sample modifications.
  • Doc only. Includes code sample changes.

Testing

  • make check passes.
  • npm test passes.
  • make docs builds without warnings. (for doc-only changes)

Checklist

General

Code Changes

  • [] make format applied (TypeScript and Python).
  • [] Tests added or updated for new or changed behavior.
  • No secrets, API keys, or credentials committed.
  • Doc pages updated for any user-facing behavior changes (new commands, changed defaults, new features, bug fixes that contradict existing docs).

Doc Changes

  • Follows the style guide. Try running the update-docs agent skill to draft changes while complying with the style guide. For example, prompt your agent with "/update-docs catch up the docs for the new changes I made in this PR."
  • New pages include SPDX license header and frontmatter, if creating a new page.
  • Cross-references and links verified.

Summary by CodeRabbit

  • Chores
    • Updated build process to ensure the application startup script is given consistent executable permissions during image creation, preventing unexpected permission states and improving reliability of container startup across builds.

…ility

Implemented feature with help from Claude Code

The nemoclaw-start script had 0711 permissions after `chmod +x` in the
Dockerfile. The sandbox user (uid=999) could execute but not read the
file, causing bash to fail with "Permission denied" (exit 126) since
bash needs read access to interpret scripts.

Use explicit `chmod 755` to ensure the sandbox user can both read and
execute the startup script.

Fixes NVIDIA#622

Signed-off-by: Craig <[email protected]>
@coderabbitai

coderabbitai Bot commented Mar 22, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 022be70d-b5d1-456f-8b85-c60cb3a70ac6

📥 Commits

Reviewing files that changed from the base of the PR and between 3412ef8 and bf19445.

📒 Files selected for processing (1)
  • Dockerfile
✅ Files skipped from review due to trivial changes (1)
  • Dockerfile

📝 Walkthrough

Walkthrough

The Dockerfile change replaces chmod +x with chmod 755 for /usr/local/bin/nemoclaw-start, ensuring the script is both readable and executable by non-root users and preventing permission-denied failures when the sandbox runs the script.

Changes

Cohort / File(s) Summary
Dockerfile Permission Fix
Dockerfile
Replaced RUN chmod +x /usr/local/bin/nemoclaw-start with RUN chmod 755 /usr/local/bin/nemoclaw-start to set explicit read and execute bits for owner/group/others (0755).

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 I hopped through layers, checking each bit,
A script was executable but couldn't be read—oh shit!
I nudged it to 755 with a gentle tap,
Now sandbox users read and run—no gap.
Hooray for small fixes and a well-set trap!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title accurately and specifically describes the main change: setting nemoclaw-start permissions to 755 in the Dockerfile to fix a sandbox readability issue.
Linked Issues check ✅ Passed The PR directly addresses issue #622 by changing chmod +x to chmod 755, giving sandbox user (uid=999) read permissions needed for bash to execute the script.
Out of Scope Changes check ✅ Passed The changeset contains only the targeted Dockerfile permission fix related to issue #622; no unrelated changes are present.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@wscurran

Copy link
Copy Markdown
Contributor

Thanks for the proposed fix to adjust the permissions of the nemoclaw-start script, which may allow the sandbox user to execute it correctly.

@cv
cv merged commit 88e0398 into NVIDIA:main Mar 30, 2026
8 checks passed
quanticsoul4772 pushed a commit to quanticsoul4772/NemoClaw that referenced this pull request Mar 30, 2026
…ility (NVIDIA#635)

Implemented feature with help from Claude Code

The nemoclaw-start script had 0711 permissions after `chmod +x` in the
Dockerfile. The sandbox user (uid=999) could execute but not read the
file, causing bash to fail with "Permission denied" (exit 126) since
bash needs read access to interpret scripts.

Use explicit `chmod 755` to ensure the sandbox user can both read and
execute the startup script.

Fixes NVIDIA#622

Signed-off-by: Craig <[email protected]>
Co-authored-by: Carlos Villela <[email protected]>
laitingsheng pushed a commit that referenced this pull request Apr 2, 2026
…ility (#635)

Implemented feature with help from Claude Code

The nemoclaw-start script had 0711 permissions after `chmod +x` in the
Dockerfile. The sandbox user (uid=999) could execute but not read the
file, causing bash to fail with "Permission denied" (exit 126) since
bash needs read access to interpret scripts.

Use explicit `chmod 755` to ensure the sandbox user can both read and
execute the startup script.

Fixes #622

Signed-off-by: Craig <[email protected]>
Co-authored-by: Carlos Villela <[email protected]>
lakamsani pushed a commit to lakamsani/NemoClaw that referenced this pull request Apr 4, 2026
…ility (NVIDIA#635)

Implemented feature with help from Claude Code

The nemoclaw-start script had 0711 permissions after `chmod +x` in the
Dockerfile. The sandbox user (uid=999) could execute but not read the
file, causing bash to fail with "Permission denied" (exit 126) since
bash needs read access to interpret scripts.

Use explicit `chmod 755` to ensure the sandbox user can both read and
execute the startup script.

Fixes NVIDIA#622

Signed-off-by: Craig <[email protected]>
Co-authored-by: Carlos Villela <[email protected]>
gemini2026 pushed a commit to gemini2026/NemoClaw that referenced this pull request Apr 14, 2026
…ility (NVIDIA#635)

Implemented feature with help from Claude Code

The nemoclaw-start script had 0711 permissions after `chmod +x` in the
Dockerfile. The sandbox user (uid=999) could execute but not read the
file, causing bash to fail with "Permission denied" (exit 126) since
bash needs read access to interpret scripts.

Use explicit `chmod 755` to ensure the sandbox user can both read and
execute the startup script.

Fixes NVIDIA#622

Signed-off-by: Craig <[email protected]>
Co-authored-by: Carlos Villela <[email protected]>
@wscurran wscurran added area: packaging Packages, images, registries, installers, or distribution bug-fix PR fixes a bug or regression platform: container Affects Docker, containerd, Podman, or images and removed area: packaging Packages, images, registries, installers, or distribution Docker labels Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-fix PR fixes a bug or regression platform: container Affects Docker, containerd, Podman, or images

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nemoclaw-start: Permission denied in sandbox (0711 permissions, sandbox user can't read bash script)

3 participants