我正在使用一个非常老的FTP客户端。我在连接编辑器中选中了“安全(SSL)”框。据我所知,服务器支持显式FTPS,但不支持隐式FTPS或SFTP。
当我登录并执行传输时,我会看到一个"AUTH“命令,但没有PBSZ或PROT行。以下是一个示例:
Finding Host ftp.softronics.ch ...
Connecting to 62.2.182.131:21
Connected to 62.2.182.131:21 in 0.087, Waiting for Server Response
220 ProFTPD 1.3.3a Server (Softronics FTP
我的问题是,我希望从root运行一个脚本,而我必须通过在命令行上键入"su -“来手动以root登录。
我的疑问是,我正在执行的脚本只需提示我输入密码,即可自动以root登录。救我!
:脚本:
if [ "$(whoami)" != "root" ]; then
echo -e '\E[41m'"\033[1mYou must be root to run this script\033[0m"
**su - # at this line I want to login as root but it is not wo