Ftp

如何從命令行更改 FTP 密碼?

  • February 23, 2022

我正在使用 putty 連接 ftp 伺服器,上面列出了可用的命令;哪一個用於更改 ftp 密碼。請幫忙

ftp> help
Commands may be abbreviated.  Commands are:

!               cr              mdir            proxy           send
$               delete          mget            sendport        site
account         debug           mkdir           put             size
append          dir             mls             pwd             status
ascii           disconnect      mode            quit            struct
bell            form            modtime         quote           system
binary          get             mput            recv            sunique
bye             glob            newer           reget           tenex
case            hash            nmap            rstatus         trace
ccc             help            nlist           rhelp           type
cd              idle            ntrans          rename          user
cdup            image           open            reset           umask
chmod           lcd             passive         restart         verbose
clear           ls              private         rmdir           ?
close           macdef          prompt          runique
cprotect        mdelete         protect         safe
ftp>

您必須更改伺服器本身的密碼。通常在 UNIX 中,這將是系統使用者帳戶。建立 shell 會話後,您將執行該passwd命令。

一些 ftpd 確實允許使用者使用 ‘site’ 命令更改他們的密碼:

glftpd

site passwd <string>
   Change password for the logged in user.
   See "site chpass" for info and restrictions.

drftpd

site passwd <password>

引用自:https://serverfault.com/questions/168077