You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, October 31st 2007, 5:56am

Disastrous permissions clobbering by KATE

Hi

Kate insists on clobbering my carefully mastered file permissions when modifying perl scripts causing disastrous failures.

1: The group-user is incorrectly changed.
2: The execute permissions are reversed (ie lost).
3: Unwanted 'world-write' is turned ON.
4: Wanted 'world-read' & 'execute' are turned OFF.

Please, how can I turn this behaviour OFF OFF OFF!

specs: kate-2.5.3 with KDE-3.5.3 and FC4

Kstack

2

Wednesday, October 31st 2007, 12:46pm

Long long ago, there was a similar problem when writing backup files: http://www.kde.org/info/security/advisory-20050718-1.txt

I thought such bugs were all fixed and closed.. Do you notice similar things with kwrite also?
What if you say "umask 022" in ~/.bashrc?

3

Wednesday, October 31st 2007, 9:37pm

ok ....

Have just moved to FC4 (from RH8 + KDE-3.0) continuing with usual ~.bashrc umask 002 and usual 775 permissions on scripts and no distortions from kate noticed over 3 years of usage there.

(btw a lack of display of permission octals in the KDE dialog has always appealed as an odd ommission -- and have discovered my FC4 ~.bashrc umask was 004 in error, which may partly explain the 662 unwanted world write anomaly, although Kate should still not interfere with pre-mastered settings, should it?).

>>Do you notice similar things with kwrite also?
No. Kwrite seems ok ... no permissions clobbering on overwrites.

>> What if you say "umask 022" in ~/.bashrc?
Have tried this now too (including via a fresh login just to be sure) and Kate still clobbers the 775 setting, as well as replacing it corruptly with 644 (which should be 755 surely even if clobbering was desireable?).

I recall the default permissions on new backup files in RH8 being a slight nuisance too, but acceptable since Kate was actually mastering those.

Thanks for your thoughts.

Kstack