Set more strict permissions on logs and configs

This commit is contained in:
Valeriy Manzhos 2026-04-10 15:41:56 +03:00
parent 912b9a5c28
commit e0ae89b5a6
No known key found for this signature in database
GPG key ID: 6547CFC8E2EC3D90

View file

@ -599,6 +599,10 @@ setcap 'CAP_NET_ADMIN+ep' /opt/v2rayN/bin/hev_socks5_tunnel/hev-socks5-tunnel
chmod 444 /opt/v2rayN/bin/hev_socks5_tunnel/v2rayn-tun.yaml
chmod +x /opt/v2rayN/bin/sing_box/sing-box
chmod +x /opt/v2rayN/bin/xray/xray
chown -R v2rayn-core:v2rayn /opt/v2rayN/binConfigs
chmod 570 /opt/v2rayN/binConfigs
chown -R v2rayn-core:v2rayn /opt/v2rayN/guiLogs
chmod 750 /opt/v2rayN/guiLogs
loginctl enable-linger v2rayn-core
exit 0
EOF