Operation not permitted: Failed to replace /etc/hosts with /etc/hosts.webmintmp.28408

2 posts / 0 new
Last post
#1 Sun, 09/23/2018 - 22:05
adamjedgar

Operation not permitted: Failed to replace /etc/hosts with /etc/hosts.webmintmp.28408

what does this mean?

I cannot edit this file using google cloud ssh (as root) or in webmin when logged in as webmin admin.

In webmin>others>filemanager, its permissions are root:root 0644

in the past i have been easily able to edit this file. Have i made it immutable at some point? If so, how can I check this and also undo it?

Sun, 09/23/2018 - 22:12
adamjedgar

Ah yes thats right i remember now, i made thus file immutable usimg chattr so that google cloud couldnt keep changing the server host record in it back to the stupid "added by google" one.

The reason i need to edit the file is so i can change the host ip address listed...i dont have the server static public ip address...only its internal static ip.

I believe i need public one in /etc/hosts ?

AJECreative is the home of $5 webhosting, $15/month VPS servers (1cpu,1gb RAM, 25GB storage)
Centos7, Debian9, or Ubuntu18LTS
Available Control Panels = Centos-Webpanel, Cyberpanel, or Virtualmin

https://ajecreative.com.au

Topic locked