Since calls to op-mode commands are done through root, a remote file downloaded in this manner ends up with root:root ownership and 600 permissions. (Local copy operations still preserve the attributes.) Ideally it should use the user's own uid:gid and maybe something like 640 by default. For FTP, TFTP and HTTP, this is just a matter of setting a umask and calling chown(2), but we should consider copying over the remote stat(2) values for SFTP.
Description
Description
Details
Details
- Difficulty level
- Unknown (require assessment)
- Version
- -
- Why the issue appeared?
- Will be filled on close
- Is it a breaking change?
- Perfectly compatible
- Issue type
- Improvement (missing useful functionality)
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
In progress | FEATURE REQUEST | None | T3355 Remove all remaining legacy Vyatta code | ||
Resolved | FEATURE REQUEST | erkin | T3356 Script for remote file transfers | ||
Open | erkin | T5985 Downloaded files end up with unwieldy file attributes |