9001 / 9001/copyparty

Configurable home-directory for sftp-users

Open
#1,188 1 comment 0 reactions 1 assignee Claimed by @9001 View on GitHub
enhancement
Dominant language
Python
Stars
46.7k
Forks
1.9k
Avg merge
9d 2h
Merged PRs (30d)
4

Description

Right now sftp `copyparty:` and `copyparty:/` both point to the same path. But it'd be kind of neat to be able to configure where the one without a `/` goes.

maybe just

`sftp-key: foo:/u/foo `

or something like that? Or maybe not, since one might want to use that kind of syntax for potential feature of restricting access paths for a key, or something like that

`sftp-key: foo?h=/u/foo ` maybe?` or a global option like

`sftp-home: /u/${u}`

though I suspect ssh keys might be given to services without a logical home-directory..

Not even close to a necessary feature of course, but a small usability improvement..

Takk igjen!

Contributor guide

Open the contributing guide

Research direction

Look at the SFTP server implementation in copyparty, likely in a module handling SFTP user sessions and path resolution. The issue mentions configurable home directories for SFTP users, so examine how user paths are currently mapped (like 'copyparty:' vs 'copyparty:/'). Check configuration parsing for SFTP keys and see where home directory logic is applied. Test changes by connecting via SFTP and verifying the configured home path is used.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, shell
Domain
backend, cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.