【问题标题】:ftp to show files with owner on linuxftp 在 linux 上显示具有所有者的文件
【发布时间】:2015-04-18 16:35:32
【问题描述】:

我们以前使用 FTP 客户端从 HP-UX 系统中获取列出所有者名称的目录内容,最近将系统迁移到 Suse-Linux。现在当我们 FTP 到这台机器时,目录列表不显示文件的所有者名称。

如何在 Linux 中启用以所有者名称列出目录?

【问题讨论】:

    标签: linux ftp-client suse


    【解决方案1】:

    ftp(以及大多数shell)中,你有ls 命令。这将打印文件列表。

    **Example session** (cutted out some messages):
    
    $ ftp ftp.ed.ac.uk
    Connected to luther.is.ed.ac.uk.
    220-
    
     Login using the username 'anonymous' and use your email address as password.
    
    ftp> ls
    200 PORT command successful
    150 Opening ASCII mode data connection for file list
    lrwxrwxrwx   1 root     root            8 Feb 26  2014 INSTRUCTIONS-FOR-USING-THIS-SERVICE -> .message
    drwx-wx-wx   3 root     root         4096 Feb 17 14:57 edupload
    drwx-wx-wx   3 root     root       131072 Feb 17 20:20 incoming
    drwxr-xr-x  45 root     root         4096 Feb 19  2014 pub
    226 Transfer complete
    ftp> 
    

    表格显示:

    • drwxdrwxdrwxd 代表目录,然后rwx 代表读写执行(按顺序),所有者,组和所有具有登录权限的人;
    • 所有者的姓名 (root);
    • 群主的名称 (root);
    • 文件大小;
    • 修改日期;和
    • 文件名。

    【讨论】:

    • 问题在于 FTP 服务器的配置方式。与ls无关。 FTP 客户端上的 dir 命令显示的是所有者 ID,而不是所有者名称。系统管理员告诉我他必须在 ftp.config 中插入一些变量。
    • @TonyP: 你不叫ls 你叫ls 命令 ftp.
    猜你喜欢
    • 1970-01-01
    • 2015-10-29
    • 1970-01-01
    • 1970-01-01
    • 2014-07-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-28
    相关资源
    最近更新 更多