Skip to content

Requiring ~/.s3cfg to be non-readable by non-owner #1405

@ccotter

Description

@ccotter

Bug

s3cmd seems to permit the ~/.s3cfg file to have any permissions for reading by other users. Since the config file may contain the secret_key, it's important for this file to be readable only by the owner of the file to prevent unauthorized users from reading it.

Suggested solution

sshd supports a StrictModes flag (default enabled) which refuses to work with a given ssh private key if the key file has wide open permissions.

Can s3cmd similarly default to refuse to load the ~/.s3cfg file if its permissions are too wide open?

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