确保权限设置合理
操作步骤
chmod 700 ~/.openclaw chmod 600 ~/.openclaw/openclaw.json chmod 700 ~/.openclaw/devices chmod 600 ~/.openclaw/devices/paired.json chmod 700 ~/.openclaw/credentials chmod 600 ~/.openclaw/credentials/* chmod 700 ~/.openclaw/agents/main/agent chmod 600 ~/.openclaw/agents/main/agent/auth-profiles.json chmod 700 ~/.openclaw/workspace/ chmod 600 ~/.openclaw/workspace/* chmod 600 ~/.openclaw/workspace/memory/* chmod 700 ~/.openclaw/agents/main/sessions chmod 600 ~/.openclaw/agents/main/sessions/* chmod 600 ~/.openclaw/logs/* chmod 600 ~/.openclaw/exec-approvals.json
如存在环境变量,则设置环境变量文件.env
chmod 600 ~/.openclaw/.env
父主题: 自动配置项