Skip to content

Python history file (.pythonhist) should not be world readable  #489

@jfalken

Description

@jfalken

The python history file (~./pythonhist by default), is created with world readable permissions (644).

(venv)chris:~/ $ ls -l ~/.pythonhist
-rw-r--r--  1 chris  staff  46 Feb 23 11:14 /Users/chris/.pythonhist

This can allow other users on the system to read bpython history, which may include passwords / API keys etc.

I believe the permissions should be 600 upon file creation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions