Can't access Hosts file

Get help for specific problems
Posts: 4
Joined: 29 Jun 2019

Rob_S

I'm trying to backup my hosts file from a Windows system directory but get his error:

8:46:30 PM Warning Cannot set directory locks for the following folders:
Cannot write file "C:\Windows\System32\drivers\etc\sync.ffs_lock".

I click the ignore button but the hosts file isn't copied.

Can this be down or am I SOL?
Posts: 4
Joined: 29 Jun 2019

Rob_S

Never mind. I ran the program as administrator (even though I AM an administrator) and it worked.
Posts: 1
Joined: 17 May 2023

pls

Hello,
I want to synchronise the hosts file:
to other network machines,

C:\Windows\system32\drivers\etc\hosts to:
\\10.0.0.2\c$\Windows\system32\drivers\etc\hosts

Under Windows 10 &11, folder security permissions are set.

I have taken control of the folder and granted administrators full control,
but it still won't sync.

Can you please tell me what security permissions to set,
in order to sync the hosts file to other network machines

Many thanks,

Phil
User avatar
Posts: 2276
Joined: 22 Aug 2012

Plerry

Like Rob_S said above, try running FFS as Administrator.
User avatar
Posts: 3592
Joined: 11 Jun 2019

xCSxXenon

Also a note, being an administrator is not the same as running something as administrator. The built-in administrator account has elevated privileges. Microsoft is kinda unclear about it