{
  "id": "go/os-permission-denied",
  "signature": "open /etc/passwd: permission denied",
  "signature_zh": "打开 /etc/passwd：权限被拒绝",
  "regex": "open\\ /etc/passwd:\\ permission\\ denied",
  "domain": "go",
  "category": "auth_error",
  "subcategory": null,
  "root_cause": "The process does not have sufficient permissions to access the file or directory.",
  "root_cause_type": "generic",
  "root_cause_zh": "进程没有足够的权限访问文件或目录。",
  "versions": [
    {
      "version": "1.22",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Security risk; not always possible.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "File not read; logic breaks.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Check permissions before access: if fi, err := os.Stat(path); err == nil && fi.Mode().Perm()&0444 == 0 { return errors.New(\"no read permission\") }",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Use os.Open with proper error handling: f, err := os.Open(path); if err != nil { if os.IsPermission(err) { handle } }",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.86,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-01-15",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}