Skip to content

Install Claude as rails user instead of root#122

Merged
xrendan merged 1 commit intomainfrom
fix/admin-auth-enforcement
Mar 27, 2026
Merged

Install Claude as rails user instead of root#122
xrendan merged 1 commit intomainfrom
fix/admin-auth-enforcement

Conversation

@xrendan
Copy link
Copy Markdown
Member

@xrendan xrendan commented Mar 27, 2026

Summary

  • Moves Claude Code installation to after the USER 1000:1000 switch, so it installs into /home/rails/.local/bin/ under the rails user
  • Removes the root-install workaround (mv to /usr/local/bin + chmod 755)
  • Adds /home/rails/.local/bin to PATH via ENV

Why

The previous approach installed as root then tried to make the binary accessible to the rails user via chmod. Installing as the rails user directly is simpler and follows the principle of least privilege.

Instead of installing as root and moving to /usr/local/bin, install
after switching to the rails user so it lands in ~/.local/bin by default,
then add that to PATH.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@xrendan xrendan merged commit 407860e into main Mar 27, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant