今晚在准备用ftp向开发板传入文件时,出现了下面这种状况
root@plb-Lenovo-G460:/opt/FriendlyARM/mini2440/examples/myled-player#ftp 192.168.1.230
Connected to 192.168.1.230.
220 FriendlyARM FTP server (Version 6.4/OpenBSD/Linux-ftpd-0.17)ready.
Name (192.168.1.230:plb): plg
331 Password required for plg.
Password:
230 User plg logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> put led-player
local: led-player remote: led-player
200 PORT command successful.
553 led-player: Permission denied.
原来是开发板的/home/plg/文件夹没有写的权限导致的,解决的方法是登录到开发板,执行以下操作:
[root@FriendlyARM /home]# chmod 777 /home/plg
修改目标文件夹的权限。再次进行ftp传输时
ftp> put led-player
local: led-player remote: led-player
200 PORT command successful.
150 Opening BINARY mode data connection for 'led-player'.
226 Transfer complete.
7983 bytes sent in 0.00 secs (46963.2 kB/s)
ftp>
搞定。。。。。 |