jedit 更改文件的用户和组
我以 root 身份运行 jedit,以更改 /etc 中的几个系统文件,其中一些文件 有不同的所有者然后root。
当我编辑这样的文件并保存它们时,jedit 将用户设置为 root,将组设置为 root。
是否有一个选项可以设置,jedit 保留文件权限?
I'm running jedit as root, to alter several system files in /etc, some of these files
have different owners then root.
When I edit such a file, and save them, jedit set user to root and group to root.
Is there a option to set, that jedit keeps the file permissions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
尝试将备份版本设置为0
Try to set the backup version to 0
第二步在今年发布的 5.0 版本中不需要。这是相关的错误报告: #1803073
The second step is not necessary on version 5.0, which will be released this year. This is the related bug report: #1803073
通过阅读用户指南,您可以尝试关闭两阶段保存看看这是否可以解决问题。
From reading the user guide you could maybe try turning off two-stage save to see if this fixes the problem.
我遇到了这个问题。改变所有权对我来说并不是最大的问题。就是jEdit新建了一个文件,权限为600或700。 Apache 无法读取该文件,因此我不得不一次又一次地对其进行 chmod。关闭 2 阶段保存并将备份设置为 0 并没有解决我的问题。
我安装了 jEdit 5,它保留了所有者和权限。由于某种原因 Debian/Ubuntu 仍然使用 4.4,并且将 sourceforge deb 行添加到存储库不起作用。最后我下载了5并以root身份安装。
I had this problem. Changing ownership was not the biggest problem for me. It was that jEdit created a new file with 600 or 700 permissions. Apache couldn't read this file, so I had to chmod it again and again. Turning off 2-stage save and setting backups to 0 didn't solve my problem.
I installed jEdit 5, which keeps owner and permissions. For some reason Debian/Ubuntu still use 4.4, and adding the sourceforge deb line to the repository didn't work. In the end I downloaded 5 and installed it as root.