Opened 3 years ago
Closed 23 months ago
#4667 closed defect (fixed)
Make preferences file only readable by the owner
| Reported by: | dpaleino | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Component: | Core |
| Version: | Keywords: | java6 | |
| Cc: |
Description
Hello,
I had a bug reported in Debian complaining about the world-readibility of ~/.josm/preferences , since it contains the plaintext password to OSM.
I'm attaching a patch, which will only work on the Linux platform (maybe also on MacOS X?), since it directly calls /bin/chmod. Maybe when JOSM will use 1.6 more portable methods could be used (see the comment).
Attachments (1)
Change History (7)
Changed 3 years ago by dpaleino
comment:1 Changed 3 years ago by Gubaer
- Keywords java6 added
- Summary changed from Make preferences file only readable by the owner to PATCH: Make preferences file only readable by the owner
I'd rather not apply the patch and wait for the upcoming switch to Java6 and apply what you suggest in the patch comment. Not sure when this is going to happen, though, the schedule for switching to Java6 has been slipped twice in the past.
comment:2 Changed 3 years ago by jstein
should someone join the ticket with
Ticket #4629 ?
Will the patch repair old profiles too?
comment:3 Changed 3 years ago by dpaleino
#4629 is the same exact issue, but I don't see the reason why it's been closed. It's a bug, and it should be fixed. I'd say: join them, but keep the bug open.
As it currently is, the patch "repairs" old profiles too. But it works only on systems where "chmod" is available -- i.e. if running on Windows, it won't be fixed. That's why I'm suggesting to use an alternative method which uses Java6. But, for the moment being, this patch will fix the problem in all Linux environments.
Have a nice day,
David
comment:4 Changed 3 years ago by jstein
Ticket #4629 has been marked as a duplicate of this ticket.
comment:5 Changed 3 years ago by stoecker
- Summary changed from PATCH: Make preferences file only readable by the owner to Make preferences file only readable by the owner
Java6 is now possible to use for josm core.
comment:6 Changed 23 months ago by jttt
- Resolution set to fixed
- Status changed from new to closed
In [4200/josm]:



chmod preferences file to 600