koycloud / huhamhire-hosts

Automatically exported from code.google.com/p/huhamhire-hosts
GNU General Public License v3.0
1 stars 0 forks source link

无法修改host文件 #80

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
您遇到的问题:
1.我在opensuse系统下用root启动hostsutl.py,仍然告诉我没有权限修
改host文件

您使用的hosts文件版本:1.2.5
您使用的操作系统:opensuse
您所在的区域(省/市):辽宁省沈阳是
您使用的ISP(网络运营商):联通
网络环境(IPv4/IPv6):IPv4

有关问题的其他描述:

Original issue reported on code.google.com by Kimspiri...@gmail.com on 16 Oct 2013 at 12:53

GoogleCodeExporter commented 9 years ago
这种情况下你有试过在提升权限后用文本编辑器直接编辑 
/etc/hosts 文件并保存吗?

如果可以正常手动修改的话,可能目前的脚本对于 opensuse 
下执行权限的判断可能存在一些问题,我会进一步跟踪。
您可以先用我们的工具生成一个使用 UTF8 格式编码的 hosts 
文件,随后再将其覆盖到目标路径。

Original comment by hujunx...@gmail.com on 17 Oct 2013 at 4:15

GoogleCodeExporter commented 9 years ago
手动替换是可以的,我只是提交一个小bug 希望你们越做越好.

Original comment by Kimspiri...@gmail.com on 17 Oct 2013 at 5:34