# 错误：打开 /etc/passwd：权限被拒绝

- **ID:** `go/os-open-permission-denied`
- **领域:** go
- **类别:** system_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

进程缺少打开指定文件所需的文件系统权限。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 1.15 | active | — | — |

## 解决方案

1. **** (85% 成功率)
   ```
   Check file permissions and adjust the program to use a file it has access to.
   ```
2. **** (90% 成功率)
   ```
   Use os.OpenFile with appropriate flags and error handling.
   ```

## 无效尝试

- **** — This is insecure and may not be possible on read-only file systems. (70% 失败率)
- **** — Running as root is a security risk and may not be allowed in production. (60% 失败率)
