0

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?

ekad
  • 14,436
  • 26
  • 44
  • 46
Alex
  • 4,033
  • 9
  • 37
  • 52

4 Answers4

2

Try to set the backup version to 0

Brandon
  • 68,708
  • 30
  • 194
  • 223
lukas
  • 21
  • 2
0
  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

Jarekczek
  • 7,456
  • 3
  • 46
  • 66
0

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.

SPRBRN
  • 2,406
  • 4
  • 35
  • 48
0

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

Mark
  • 28,783
  • 8
  • 63
  • 92
  • The option two-stage-save can be found in (jEdit 4.3.1): Utilities->General Options->jEdit->Saving & Backup. But this doesn't solve the problem, the the owner and group of the file are still reset to root root. Alex – Alex Feb 24 '10 at 12:41