Permission Denied error

python

#1

Hello, I read the other applications you have answered but none have answered my question.
I am running a Discord Bot (Python) and when i try to edit a file, it keeps giving me an error:
Failed to write to ‘owner.py’. Failed saving file ! : Red-DiscordBot/cogs/owner.py ERR: Error: EACCES: permission denied, open ‘/home/ubuntu/workspace/Red-DiscordBot/cogs/owner.py’.
I don’t know how to fix it, and I don’t know how to operate linux, so if you could send me any commands that would fix it, it would be very nice.