Now you should be able to create files or directories because you're now the owner of the directory and all its content. Remove the -R flag to just change the permissions of the directory itself. The -R flag stands for recursive, so that directory and all its subfiles and subdirectories will change owner. Make yourself the owner of the directory and its contents: sudo chown -R "$USER:" /path/to/the/directory To make yourself the owner (terminal way): If you have write permissions for the directory you can create a file inside it because you have write permissions for the directory itself. This is because if you only have write permissions to the files inside the directory, you can't just create a new file because you don't have write permissions for that file (it doesn't exist, so no permissions to create it). You could also try prefixing your build target Output file name with a. Yes, you have to change the permissions of the directory as well. Re: Code::Blocks, Permission denied when building.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |