-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Insufficient permissions when using certificates
Dct Mei edited this page Jun 14, 2020
·
6 revisions
假設,證書文件所在的路徑為 /srv/http/
。
文件分別為 /srv/http/example.com.key
和 /srv/http/example.com.pem
。
方案一:
-
/srv/http/
的默認權限一般為 755; -
/srv/http/example.com.key
的默認權限一般為 600; -
/srv/http/example.com.pem
的默認權限一般為 644。
將 /srv/http/example.com.key
修改為 644 即可:
# chmod 644 /srv/http/example.com.key
方案二:
# id nobody
-
显示出来的结果可能是:
uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
相应的,只需要执行:
# chown -R nobody:nogroup /srv/http/
-
显示出来的结果也可能是:
uid=65534(nobody) gid=65534(nobody) groups=65534(nobody)
相应的,只需要执行:
# chown -R nobody:nobody /srv/http/