user3477051
user3477051

Reputation: 459

nginx.conf (permission to write denied). How do I fix this?

So I am trying to follow the tutorial here: https://gorails.com/deploy/ubuntu/14.04 to deploy a Rails app. When I tried to edit the nginx.conf at (/etc/nginx/nginx.conf) file, it tells me I have read only permission, even though I followed the steps(with setting the permissions) previously. How do I fix this?

Upvotes: 9

Views: 16902

Answers (1)

Mohammad AbuShady
Mohammad AbuShady

Reputation: 42889

you need sudo to edit that file, because it's owned by root user,

use sudo nano /etc/nginx/nginx.conf or sudo vim /etc/nginx/nginx.conf which ever editor you prefer.

Upvotes: 23

Related Questions