Skip to content

Incorrect directory permissions after init via SFTP #4447

@onebitboy

Description

@onebitboy

Output of restic version

Versions tested:
restic 0.16.0 compiled with go1.20.6 on linux/amd64 (official standalone binary)
restic 0.14.0 compiled with go1.20.7 on linux/amd64 (Debian sid)
restic 0.15.1 compiled with go1.20.1 on openbsd/amd64 (OpenBSD 7.3)

How did you run restic exactly?

restic -r sftp:example.com:repo init

What backend/server/service did you use to store the repository?

SFTP to Debian bookworm, OpenBSD 7.3 and rsync.net.

Expected behavior

Like in a local repo, directories should be created with 700 permissions.

Actual behavior

Directories are created with 755 permissions instead.

Steps to reproduce the behavior

See above: simply init a new repo via SFTP.

Do you have any idea what may have caused this?

No.

Do you have an idea how to solve the issue?

No.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions