虚拟机 – Wasting_Misaka.Blog https://forelink.top Hso! Mon, 17 Jun 2024 08:20:22 +0000 zh-Hans hourly 1 https://wordpress.org/?v=6.7.1 MobaXterm给Linux传输文件提示Error#3 Permission Denied的解决方法 https://forelink.top/index.php/2024/06/17/mobaxterm%e7%bb%99linux%e4%bc%a0%e8%be%93%e6%96%87%e4%bb%b6%e6%8f%90%e7%a4%baerror3-permission-denied%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95/ https://forelink.top/index.php/2024/06/17/mobaxterm%e7%bb%99linux%e4%bc%a0%e8%be%93%e6%96%87%e4%bb%b6%e6%8f%90%e7%a4%baerror3-permission-denied%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95/#respond Mon, 17 Jun 2024 08:19:49 +0000 https://forelink.top/?p=263 先贴方法:给 /S1/S2 中的S2文件夹传输文件提示请求拒绝,则要到S1文件夹中以root身份执行如下指令

chmod 777 S2

如果想要将文件传输到Linux系统中指定的文件夹,并希望使用图形化的方式来简化这个过程,很自然的就会将文件直接拖入MobaXterm左侧的文件夹视窗中

然而直接这么做,会得到一个报错

这是因为当前用户对文件的权限不够导致。
需要使用chmod 777命令
Linux chmod(change mode)命令能控制用户对文件的权限

Linux/Unix 的文件调用权限分三级:文件所有者(Owner)、用户组(Group)、其他用户(Other User)
所以chmod后面跟着三个数字,而不是77或7

Linux把对文件的操作分为三种R(read) W(write) X(execute),并给这三种操作分配了值r=1 w=2 x=4,这些巧妙的二进制数可以以唯一的方法组合出0-7的任意数字,能表示出任何一种权限组合。

如 7 的 二进制表达是 111 对应 读+写+执行

有了这些知识,我们就可以给特定的文件夹赋予权限了,方法正如开头所提到那样就可以提供权限了

//使用 chmod 777 [文件夹名/文件名]命令
chmod 777 S2
]]>
https://forelink.top/index.php/2024/06/17/mobaxterm%e7%bb%99linux%e4%bc%a0%e8%be%93%e6%96%87%e4%bb%b6%e6%8f%90%e7%a4%baerror3-permission-denied%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95/feed/ 0
MobaXterm SFTP目录跟随终端 https://forelink.top/index.php/2024/06/17/mobaxterm-sftp%e7%9b%ae%e5%bd%95%e8%b7%9f%e9%9a%8f%e7%bb%88%e7%ab%af/ https://forelink.top/index.php/2024/06/17/mobaxterm-sftp%e7%9b%ae%e5%bd%95%e8%b7%9f%e9%9a%8f%e7%bb%88%e7%ab%af/#respond Mon, 17 Jun 2024 08:07:16 +0000 https://forelink.top/?p=267 在创建SSH会话时,在SSH菜单栏切换到Advanced SSH settings

将SSH-browser type改成SCP(enhanced speed)

勾选Follow SSH path 后点击确认即可

]]>
https://forelink.top/index.php/2024/06/17/mobaxterm-sftp%e7%9b%ae%e5%bd%95%e8%b7%9f%e9%9a%8f%e7%bb%88%e7%ab%af/feed/ 0