[GH-ISSUE #2258] 上传文件权限 #1421

Open
opened 2026-02-27 00:03:29 +03:00 by kerem · 3 comments
Owner

Originally created by @lemon9921010 on GitHub (Sep 28, 2021).
Original GitHub issue: https://github.com/electerm/electerm/issues/2258

Please check known issues first

https://github.com/electerm/electerm/wiki/Know-issues

Electerm version:

Operating system(linux, macos, or windows7/8/10?):

Expected Behavior

Can you reproduce the same behavior in other terminal:

Current Behavior

Possible Solution

Steps to Reproduce

1.上传文件权限默认600, 建议改成644,走umask的, 现在默认没权限 好不习惯
2.
3.
4.

Context (Environment)

Detailed Description

Suggestions?

Originally created by @lemon9921010 on GitHub (Sep 28, 2021). Original GitHub issue: https://github.com/electerm/electerm/issues/2258 ## Please check known issues first https://github.com/electerm/electerm/wiki/Know-issues <!--- Provide some basic info --> ## Electerm version: ## Operating system(linux, macos, or windows7/8/10?): ## Expected Behavior <!--- Tell me what should happen --> ## Can you reproduce the same behavior in other terminal: <!--- If same bahavior happens in other terminal, maybe it is supposed to be like this or not a problem of terminal app --> ## Current Behavior <!--- Tell me what happens instead of the expected behavior --> ## Possible Solution <!--- Not obligatory, but suggest a fix/reason for the bug, --> ## Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug. Include code to reproduce, if relevant --> 1.上传文件权限默认600, 建议改成644,走umask的, 现在默认没权限 好不习惯 2. 3. 4. ## Context (Environment) <!--- How has this issue affected you? What are you trying to accomplish? --> <!--- Providing context helps us come up with a solution that is most useful in the real world --> ## Detailed Description <!--- Provide a detailed description of the change or addition you are proposing --> ## Suggestions? <!--- Not a bug report, just some thoughts or suggestions? It is totally OK and welcome too -->
Author
Owner

@zxdong262 commented on GitHub (Sep 28, 2021):

请问本地文件的权限是什么情况?一般是保持原有的权限

<!-- gh-comment-id:928919101 --> @zxdong262 commented on GitHub (Sep 28, 2021): 请问本地文件的权限是什么情况?一般是保持原有的权限
Author
Owner

@lemon9921010 commented on GitHub (Sep 28, 2021):

一般都是从windows传上去的, 原来通过xshell, scrt都是有权限的

<!-- gh-comment-id:928920087 --> @lemon9921010 commented on GitHub (Sep 28, 2021): 一般都是从windows传上去的, 原来通过xshell, scrt都是有权限的
Author
Owner

@Eleg-i commented on GitHub (Aug 5, 2024):

借此问题提个建议,SFTP 能否在上传文件、文件夹时,默认使用 umask,不要使用原系统的权限,并且合并或者替换文件或者文件夹时不要替换目标系统上的原文件或者文件夹的权限,替换后自动重置一下权限。

一般是从windows传文件到linux,两个权限系统完全不一样,用户不同权限要求也不一样,直接平移权限有点尴尬。或者在设置里面加个开关控制是否引用原操作系统的文件权限。

<!-- gh-comment-id:2268104218 --> @Eleg-i commented on GitHub (Aug 5, 2024): 借此问题提个建议,SFTP 能否在上传文件、文件夹时,默认使用 umask,不要使用原系统的权限,并且合并或者替换文件或者文件夹时不要替换目标系统上的原文件或者文件夹的权限,替换后自动重置一下权限。 一般是从windows传文件到linux,两个权限系统完全不一样,用户不同权限要求也不一样,直接平移权限有点尴尬。或者在设置里面加个开关控制是否引用原操作系统的文件权限。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#1421
No description provided.