jedit 更改文件的用户和组

发布于 2024-08-22 08:02:29 字数 153 浏览 4 评论 0原文

我以 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

清晰传感 2024-08-29 08:02:29

尝试将备份版本设置为0

Try to set the backup version to 0

鱼忆七猫命九 2024-08-29 08:02:29
  1. 关闭二级保存
  2. 将备份数量设置为 0,以禁用它们

第二步在今年发布的 5.0 版本中不需要。这是相关的错误报告: #1803073

  1. Turn off 2-stage save
  2. Set the number of backups to 0, to disable them

The second step is not necessary on version 5.0, which will be released this year. This is the related bug report: #1803073

-残月青衣踏尘吟 2024-08-29 08:02:29

通过阅读用户指南,您可以尝试关闭两阶段保存看看这是否可以解决问题。

From reading the user guide you could maybe try turning off two-stage save to see if this fixes the problem.

没︽人懂的悲伤 2024-08-29 08:02:29

我遇到了这个问题。改变所有权对我来说并不是最大的问题。就是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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文