Failed to save configuration file

5 posts / 0 new
Last post
#1 Mon, 10/02/2017 - 04:32
virtu

Failed to save configuration file

Hi,

I want to change some lines in conf file but I received that error:

"Failed to save configuration file : Failed to replace /etc/nginx/sites-enabled/sitename.conf with /etc/nginx/sites-enabled/sitename.conf.webmintmp.54793 : Operation not permitted"

Then I tried to chane permission of this file from here: etc/nginx/sites-enabled

But this time: failed to change permissions 256

How can I edit this file?

Thanks in advance.

Tue, 10/03/2017 - 00:19
Joe
Joe's picture

Is your disk full?

--

Check out the forum guidelines!

Tue, 10/03/2017 - 01:36
virtu

No, it's not.

I disabled virtual server of the website and edited .conf file again(Webmin - Servers - Nginx Webserver - Edit Configuration Files) then tried to save it, but still same error.

Also I tried to save another website's .conf file from server and it works but doesn't work for other.

Tue, 10/03/2017 - 14:15
Joe
Joe's picture

Did you change the attributes to make the file immutable? I'm not sure why one file would be unchangeable.

Can you edit it from the command line?

--

Check out the forum guidelines!

Wed, 10/04/2017 - 07:48
virtu

I didn't make the file immutable but it's fixed! Thank you very much.

Here is the code if anybody is facing the same issue: sudo chattr -i /etc/nginx/sites-enabled/sitename.conf

Topic locked