A user encountered an issue where Claude Code, when run non-interactively via a systemd timer, failed to write logs to the /tmp directory. The problem stemmed from Claude Code's file access being scoped by its working directory and explicit additions, rather than the user's UID, and the need for explicit permission prompts in interactive mode. When run without user interaction, these prompts are denied, causing the write operation to fail silently. Additionally, systemd's PrivateTmp=yes setting can create a private /tmp namespace for services, further isolating log files. The solution involved moving the log file destination out of /tmp to a user-accessible directory. AI
IMPACT Highlights potential issues when integrating LLMs into automated workflows and the importance of understanding their execution context.
RANK_REASON User-reported issue and solution for a specific AI tool's behavior in a particular environment.
Read on dev.to — Claude Code tag →
- Claude
- Claude Code
- Claude Pro
- curator.sh
- Global Biodiversity Information Facility
- Grep Command
- Read
- systemd
- Unix-like operating system
- writing
AI-generated summary · Google Gemini · from 1 sources. How we write summaries →