A user, rajesh.saharan, encountered an issue with a file being unwritable (File 'containers/app.yml' is unwritable) while trying to edit their app.yml file on an AWS EC2 instance. fzngagan suggested checking the file’s ownership, which rajesh.saharan didn’t know how to do.
fzngagan provided Unix commands to find the owner, and rajesh.saharan requested clarification. After running the commands, rajesh.saharan found that the file belonged to the root user, while they were logged in as ubuntu. fzngagan explained that this was the cause of the issue and suggested using sudo su - to gain root access.
However, rajesh.saharan found an alternative solution by using sudo nano app.yml, which allowed them to make changes to the file. fzngagan advised rajesh.saharan to remember to use this method every time they need to make changes on their instance.