linux - 从本地 Windows PC 和 Linux 传输数据

标签 linux windows file ssh transport

我想将一些文件从 Windows PC 传输到 Debian 服务器。
通常我使用 FTP 客户端,但我遇到了一个问题,希望你能给我一些建议。
问题
我想在/etc/example 上传输一些文件,而在这个文件夹上,普通用户(例如名为 tom 的用户)没有 rwx 权限 - 只有 r。为了在那里传输一些数据,tom 以 thom 身份登录时可以执行“sudo su”,然后他获得了该文件夹的 rwx 权限。

问题:

  1. FTP 客户端是否可以使用 sudo 登录 该用户的权利?因为“第一个”root用户的密码我 不知道。
  2. 或者是否有另一种可能性可以从 Windows PC 传输文件 就像从/c:/users/example/dir 到 debian@IP:/dir/dir/dir 一样。

希望大家明白我的意思。

亲切的问候 xcdsfda

最佳答案

您可以使用像 Filezilla 这样的 FTP 客户端,将您的 Windows 文件复制到/home/Tom (您的 Debian 的主目录) 然后,例如使用 Putty,您可以执行“sudo su -”,然后,您可以编写“mv”或“cp”命令。

不建议将/etc/folders 的权限授予普通用户。

关于linux - 从本地 Windows PC 和 Linux 传输数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50262870/

相关文章:

php - 警告 : require(file): failed to open stream

php - UTF-8贯穿始终

python - 如何在 Windows 7 上使用 python 创建 RAS 电话簿条目?

c# - 哪个更快?正则表达式还是 EndsWith?

android - 从另一个应用复制文件

file - 如何使用 NaCl 对大文件进行签名?

linux - WebDriver异常: no chrome binary at/usr/bin/google-chrome-stable or chrome binary not found

linux - 使用 alt+f2 启动 shell 脚本 (debian/mate)

c# - 新安装的 Visual Studio 2015 中缺少 Windows 窗体模板

c# - 使用C#清除文本文件的内容