Many files had their ownership changed to root in GCP and now I can't remove them. How do I change it back? GCP help is hard to come by. Thanks, -Marcos
Asked
Active
Viewed 21 times
0
-
1If someone accidentially did a `chown root:root /*`, you're probably better off recreating the server. – ceejayoz Sep 01 '23 at 15:44
-
I didn't do it. Somehow the file permissions and dates even changed. – Marcos Camargo Sep 01 '23 at 18:47
-
Are they system files, or your files? – Hack Saw Sep 01 '23 at 18:49
-
They are files in /usr/lib/cgi-bin and also my own files. – Marcos Camargo Sep 01 '23 at 19:02
-
Can you open a root shell or do you have sudoer rights on the machine? If so, then you can just delete them. There has to be something in the config or on the machine that has changed the owner. It doesn't just happen. – Nasir Riley Sep 02 '23 at 17:03