【问题标题】:change permission of file transferred into linux box from windows更改从 Windows 传输到 linux 框的文件的权限
【发布时间】:2012-06-20 08:54:01
【问题描述】:

我正在通过批处理脚本和内部批处理脚本将文件从 Windows 远程传输到 linux 框中我正在使用 putty cmd 并通过 plink.exe 执行它 我面临的问题是,当它实际被传输到 linux 机器时,它无法执行,因为它不包含可执行文件权限。

我的问题是如何远程将文件权限更改为 755 或 777?

感谢并再次感谢, 山姆

【问题讨论】:

    标签: windows linux batch-file putty


    【解决方案1】:

    和localy一样:

    chmod 755 /path/to/file
    

    您也可以使用plink 运行此命令

    【讨论】:

      猜你喜欢
      • 2011-12-16
      • 1970-01-01
      • 2017-10-03
      • 2018-08-03
      • 2021-09-13
      • 2014-12-16
      • 2021-09-18
      • 2012-07-14
      • 1970-01-01
      相关资源
      最近更新 更多