所有子目录中的FTP-Client中的chmod语法

时间:2022-03-24 03:47:07

Which ftp client or which syntax allows easy chmod for sub-directories?

哪个ftp客户端或哪种语法允许轻松chmod用于子目录?

6 个解决方案

#1


0  

I'm pretty sure Filezilla does it

我很确定Filezilla会这样做

#2


0  

ncftp will support the chmod command if the FTP Server supports it.

如果FTP服务器支持,则ncftp将支持chmod命令。

#3


0  

As the answer from @Ken G suggests, this is more likely to be a question of "what does the FTP server support".

正如@Ken G的回答所暗示的那样,这更有可能是“FTP服务器支持什么”的问题。

I tried ncftp (running under Cygwin on Win XP) against Sun FTP running on Solaris 10 (where chmod -R is supported by the o/s version of chmod). I got an error back:

我尝试在Solaris 10上运行的Sun FTP上运行ncftp(在Win XP下运行Cygwin)(其中chmod -R由omod版本的chmod支持)。我收到了一个错误:

ncftp /work1/jleffler/tmp > chmod -R g+x *
chmod g+x: server said: 'SITE CHMOD -R g+x': command not understood.
chmod *: server said: 'SITE CHMOD -R xx.pl': command not understood.
ncftp /work1/jleffler/tmp >

My suspicion is that few if any systems make it easy. It would be worth checking out whether the NCFTP server helps you.

我怀疑很少有系统能让它变得简单。值得一试的是NCFTP服务器是否可以帮助您。

#4


0  

To chmod all subdirs from where you are (recursive):

要chmod你所在的所有子目录(递归):

chmod -R *

#5


0  

LFTP allows for recursive CHMOD if the client allows it. You can accomplish this by logging in with LFTP from a Unix/Linux CLI and then run the following:

如果客户端允许,LFTP允许递归CHMOD。您可以通过从Unix / Linux CLI登录LFTP来完成此操作,然后运行以下命令:

chmod -R 0755 /www/directory/*

You could also setup a real nifty Bash script for this:

您还可以为此设置一个真正漂亮的Bash脚本:

#!/bin/bash
lftp <<EOF
set ftp:ssl-allow no
set ftp:passive-mode true
set ftp:list-options -a
open -u [user],[password] [host]
chmod -R 0777 /www/directory/*
EOF

Of course LFTP does not distinguish between files and folders, for running this command on only files/folders respectively I would suggest using FileZilla. It allows this when running the command on a folder.

当然LFTP不区分文件和文件夹,分别只在文件/文件夹上运行此命令我建议使用FileZilla。它在文件夹上运行命令时允许此操作。

#6


0  

chmod -R 755 {DIR}

You recurse with -R

你用-R递归

#1


0  

I'm pretty sure Filezilla does it

我很确定Filezilla会这样做

#2


0  

ncftp will support the chmod command if the FTP Server supports it.

如果FTP服务器支持,则ncftp将支持chmod命令。

#3


0  

As the answer from @Ken G suggests, this is more likely to be a question of "what does the FTP server support".

正如@Ken G的回答所暗示的那样,这更有可能是“FTP服务器支持什么”的问题。

I tried ncftp (running under Cygwin on Win XP) against Sun FTP running on Solaris 10 (where chmod -R is supported by the o/s version of chmod). I got an error back:

我尝试在Solaris 10上运行的Sun FTP上运行ncftp(在Win XP下运行Cygwin)(其中chmod -R由omod版本的chmod支持)。我收到了一个错误:

ncftp /work1/jleffler/tmp > chmod -R g+x *
chmod g+x: server said: 'SITE CHMOD -R g+x': command not understood.
chmod *: server said: 'SITE CHMOD -R xx.pl': command not understood.
ncftp /work1/jleffler/tmp >

My suspicion is that few if any systems make it easy. It would be worth checking out whether the NCFTP server helps you.

我怀疑很少有系统能让它变得简单。值得一试的是NCFTP服务器是否可以帮助您。

#4


0  

To chmod all subdirs from where you are (recursive):

要chmod你所在的所有子目录(递归):

chmod -R *

#5


0  

LFTP allows for recursive CHMOD if the client allows it. You can accomplish this by logging in with LFTP from a Unix/Linux CLI and then run the following:

如果客户端允许,LFTP允许递归CHMOD。您可以通过从Unix / Linux CLI登录LFTP来完成此操作,然后运行以下命令:

chmod -R 0755 /www/directory/*

You could also setup a real nifty Bash script for this:

您还可以为此设置一个真正漂亮的Bash脚本:

#!/bin/bash
lftp <<EOF
set ftp:ssl-allow no
set ftp:passive-mode true
set ftp:list-options -a
open -u [user],[password] [host]
chmod -R 0777 /www/directory/*
EOF

Of course LFTP does not distinguish between files and folders, for running this command on only files/folders respectively I would suggest using FileZilla. It allows this when running the command on a folder.

当然LFTP不区分文件和文件夹,分别只在文件/文件夹上运行此命令我建议使用FileZilla。它在文件夹上运行命令时允许此操作。

#6


0  

chmod -R 755 {DIR}

You recurse with -R

你用-R递归

相关文章