阅读背景:

节点。js读取受保护的文件而不作为根用户运行

来源:互联网 

I'd like to read/write files using nodejs that live in a protected directory (/etc/apache2/sites-available). I understand that I can run the script with sudo but the idea of that makes me worried. Is there some way I can have node try to elevate for certain functions/calls without having the whole script run with root access?I'd like to read/write files using nodejs that




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: