如何更改文件写入,添加和删除所有权以停止运行sudo grunt?

问题描述 投票:1回答:1

当我运行gruntI时收到此错误

Running "clean:server" (clean) task
Warning: Unable to delete ".tmp" file (EACCES, permission denied '.tmp/concat'). Use --force to continue.

Aborted due to warnings.

我认为这是一个非常简单的所有权变更。只是不太确定要改变什么。

sudo grunt当然是工作。出于显而易见的原因,我宁愿不用sudo来运行它

permissions gruntjs file-permissions sudo ownership
1个回答
2
投票

UNIX命令“chown”应该这样做。键入“man chown”或“chown --help”将显示完整的文档,或者可以在此处看到:http://unixhelp.ed.ac.uk/CGI/man-cgi?chown将所有者从root更改为自己的一般语法将是

sudo chown <your username> <filename>

您可以选择允许自己执行此操作。 chmod是执行此操作的命令。

chmod a+rwx <filename> 

这将为您的系统上的每个人提供对该文件执行任何操作的权限。

有关详细信息,请参阅“man chmod”或“chmod --help”

© www.soinside.com 2019 - 2024. All rights reserved.