Disable systemd PrivateTmp

user-pic
Vote 0 Votes

Systemd 為了安全性因素, 預設 PrivateTmp=true
即每個 Service 都有自己的 /tmp,
真實位置是存在於像這樣的路徑 /tmp/systemd-private-291a89c46ea14fa282e95374a841ec4e-httpd.service-eYQNRI/tmp

例: 將 Apache 停用 PrivateTmp
sed -i s/PrivateTmp=true/PrivateTmp=false/ /lib/systemd/system/httpd.service
systemctl daemon-reload
systemctl restart httpd

About this Entry

This page contains a single entry by Pank published on July 8, 2019 1:14 PM.

Get RouterOS latest version was the previous entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Monthly Archives