Comments (4)
需要修改用户权限
- 修改文件权限:找到hosts文件的位置(通常位于C:\Windows\System32\drivers\etc\hosts),
在 属性 - 安全 选项卡中 编辑 按钮,然后选择你的用户名,勾选“写入”权限,点击“确定”保存更改
这里可能还会遇到一个问题,没有权限更改权限(哈哈哈哈哈哈哈)
2.用命令提示符授权:
takeown /f C:\Windows\System32\drivers\etc\hosts
icacls C:\Windows\System32\drivers\etc\hosts /grant administrators:F
现在就可以更改了
from switchhosts.
@laozl 应该是Windows/System32/drivers/etc/hosts文件的属性是只读,需要去除只读属性的勾选才行
from switchhosts.
from switchhosts.
后来 我把原来的 hosts文件文件重命名了,再从桌面新键一个hosts的文件,重新拖进原来的目录,神奇的一幕发生了 居然可以编辑了.好像是由于那个只读旁边的隐藏,我新创建的文件就没有这个隐藏的勾勾
from switchhosts.
Related Issues (20)
- 有没有ipad版本的 HOT 5
- mac Big Sur 4.2/4.12 没有权限打开应用程序
- Signing SwitchHosts for Windows
- win11怎么配置都不生效 HOT 2
- 向`https://swh.app/api/check`发送了大量无效请求 HOT 1
- Switchhosts
- [Feature Suggestion] Enable writing to (editing) the system hosts file
- [Feature Suggestion] Add maximize and minimize buttons
- 无法直接在文件夹下添加hosts
- centos 8 安装无法获取依赖
- Feature request: Installer arguments to choose "For all users"
- 刷新的时候报错:connect EACCES 180.76.198.77:443 HOT 1
- English Grammar Improvement: "be applied"
- 项目还有人维护么??? HOT 2
- A JavaScript error occurred in the main process: Error: write EPIPE
- 希望数据存储可以是相当目录而不是绝对目录
- win11 开机自启动无效
- hosts file read-only
- mac 打开后闪退
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from switchhosts.