How do I change file writing, adding, and deleting ownerships in order to stop running sudo grunt?

2k views Asked by At

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

1

There are 1 answers

5
John Dood On BEST ANSWER

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