Domanda

When I run gruntI receive this error

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

Aborted due to warnings.

I think this is a pretty simple ownership change. Just not too sure what to change.

sudo grunt is of course, working. And for obvious reasons, I'd rather not run this with sudo

È stato utile?

Soluzione

The UNIX command "chown" should do this. Typing "man chown" or "chown --help" will bring up the full documentation or it can be seen here: http://unixhelp.ed.ac.uk/CGI/man-cgi?chown The general syntax to change the owner from root to yourself would be

sudo chown <your username> <filename>

You could optionally give yourself permission to do this. chmod is the command that does this.

chmod a+rwx <filename> 

This will give everyone on your system permission to do anything with the file.

see "man chmod" or "chmod --help" for full details

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top