2012年12月27日
摘要: 在stackexchange上看到了一个关于vim的很有意思的问题。详情可见如下链接。http://unix.stackexchange.com/questions/58880/how-does-vim-steal-root-owned-files?newsletter=1&nlcode=102660%7c320e首先使用user用户新建一个目录,然后在新建目录下,sudo touch一个文件tempfile,则tempfile属于root并且具有644权限。接下来使用vim编辑tempfile,写点东西进去,保存之后,在用ls -li来查看信息,发现该文件已经属于user了,虽然还是 阅读全文
posted @ 2012-12-27 16:52 Zaiping 阅读(7561) 评论(0) 推荐(0) 编辑