The error message suggests that the natfrp-service command is trying to create a directory in the /root/.config path but does not have the necessary permissions.

To resolve this issue, you can try the following steps:

  1. Check the permissions of the /root/.config directory by running the following command:
ls -ld /root/.config
  1. If the directory does not exist or has incorrect permissions, you can create it or modify its permissions using the following commands:
sudo mkdir /root/.config
sudo chown natfrp:natfrp /root/.config
sudo chmod 700 /root/.config
  1. After ensuring that the directory exists with the correct permissions, you can try running the natfrp-service command again:
sudo -u natfrp ./natfrp-service --daemon

Make sure to replace natfrp with the appropriate username if necessary.

By creating the directory and setting the correct ownership and permissions, the natfrp-service command should be able to create the necessary working directory without any permission denied errors.

rootlocalhosthomenatfrp# sudo -u natfrp natfrp-service --daemonpanic failed to create working directory mkdir rootconfig permission denied

原文地址: http://www.cveoy.top/t/topic/ja6d 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录