There you go. You aren’t logged in as root. And the file belongs to the root user. That’s why you aren’t able to write to that file.
Actually, with EC2, you cannot login as root directly. Now, you’re logged in as ubuntu
user.
type in sudo su -
There you go. You aren’t logged in as root. And the file belongs to the root user. That’s why you aren’t able to write to that file.
Actually, with EC2, you cannot login as root directly. Now, you’re logged in as ubuntu
user.
type in sudo su -