rootlocalhosthomenatfrp# sudo -u natfrp natfrp-service --daemonpanic failed to create working directory mkdir rootconfig permission denied
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:
- Check the permissions of the
/root/.configdirectory by running the following command:
ls -ld /root/.config
- 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
- After ensuring that the directory exists with the correct permissions, you can try running the
natfrp-servicecommand 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.
原文地址: http://www.cveoy.top/t/topic/ja6d 著作权归作者所有。请勿转载和采集!