---
title: 确保权限设置合理
description: "```"
url: https://www.hikunpeng.com/document/detail/zh/kunpengcctrustzone/tee/cVMcont/kunpengtee_zjsj_openclaw_044.html
sourcePath: /source/zh/kunpengcctrustzone/tee/cVMcont/kunpengtee_zjsj_openclaw_044.html
indexId: d99dcab09b2541fd26553ddf12595549e39ff7fd02dca6df78e3ddfe21c60ed175
---
# 确保权限设置合理

#### 操作步骤

```
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
```
