LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-01-2022, 11:44 AM   #1
ikiru
LQ Newbie
 
Registered: Nov 2022
Posts: 2

Rep: Reputation: 0
Question inetutils ftp "553 File name not allowed"


Hello, I am having issues transferring music to Foobar2000's music folder on my iPhone via ftp. previously, I was using Filezilla for this and it worked perfectly so I know that my file names are legal. some googling turns up that the issue might be with the path of the site: Linux for instance uses the user path instead of a universal FTP path, which I don't think is applicable here (the host is an iPhone). using ftp as root (which i know is bad practice) didn't change anything. the files I'm trying to move are on an external drive mounted to /mnt (which otherwise is working beautifully).

connecting to the server returns this success message:
Code:
Connected to xxx.xxx.x.xx.
220 PPFTPD how are you gentlemen
and entering my username this:
Code:
230 User anonymous logged in
Remote system type is UNIX.
Using binary mode to transfer files.
I am also unable to change my directory within my iPhone's site, trying to returns this:
Code:
421 Service not available, remote server has closed connection
Here's what comes up when I try to send a file:
Code:
200 PORT command successful
553 File name not allowed
Both devices are connected to the same network, my desktop via ethernet and my phone via wifi. I'm unsure what other information is worth offering so please be patient

Last edited by ikiru; 11-01-2022 at 11:46 AM.
 
Old 11-01-2022, 12:04 PM   #2
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
Maybe: debug/verbose (ftp options)
https://users.cs.cf.ac.uk/Dave.Marsh...t/node108.html

More obscure/deep: tcpdump & strace (I have no idea how to trace/debug the ftpd on the iPhone)
https://books.google.com/books?id=9m...0connection%22 (z-lib has .pdf)
Shows debugging your 421 error message

Added a few hours later (since OP=you hasn't been back to read this yet):
I forgot to say: welcome 2LQ.org !!!

My web search: intitle:ppftpd iphone ios app
did not match any documents,
So maybe a more carefully detailed description of exactly what you're doing, such that anyone could reproduce it, would be helpful!!!

If you find a solution, please post it for future web searchers (and mark the thread solved)

Last edited by !!!; 11-01-2022 at 03:17 PM.
 
Old 11-01-2022, 04:54 PM   #3
ikiru
LQ Newbie
 
Registered: Nov 2022
Posts: 2

Original Poster
Rep: Reputation: 0
More testing seems to confirm that it's possible that spaces in file and directory titles may be problematic. Using quotes as is standard doesn't work either. This also wasn't an issue with Filezilla. if this is the problem, is there a way to patch this, or another (preferably command line) FTP program that doesn't have this issue? (one of Filezilla's requirments 404's right now.) Previously, I was trying to move files I was using wildcards with
Code:
mput
, which would correctly call directories one-by-one like so (verbose, debug):

Code:
ftp> put /mnt/CONTENTS/MUSIC/*/*/*/*/*.mp3
local: /mnt/CONTENTS/MUSIC/downloads/#/12 Frozen Radios/[2014]ation/01 - Requiem for Dead Transmissions.mp3 remote: /mnt/CONloads/#/12 Frozen Radios/[2014] Signals in Isolation/01 - Requnsmissions.mp3
---> PORT ***,***,*,**,***,***
200 PORT command successful
---> STOR /mnt/CONTENTS/MUSIC/downloads/#/12 Frozen Radios/[20solation/01 - Requiem for Dead Transmissions.mp3
553 File name not allowed
anyway, typing out directories just does this:
Code:
ftp> put /mnt/CONTENTS/MUSIC/downloads/The/'The Skies Beg to Differ'/'[1996] The Skies Beg to Differ'/'03 - Bumblebee.mp3
ftp: local: /mnt/CONTENTS/MUSIC/downloads/The/'The: No such file or directory
I've also tested with some random home files:
Code:
ftp> put .xprofile
200 PORT command successful
550 Access denied
There isn't really an end to tcpdump. What or how much specific information do you need? I'd like to be as concise as possible for security reasons... nice that I can now spy on my family though... same goes for strace ftp. what am i looking for specifically? should i just pastebin all of it?

Quote:
So maybe a more carefully detailed description of exactly what you're doing, such that anyone could reproduce it, would be helpful!!!
Okay... I am using Arch Linux, and the ftp command from GNU's inetutils. I am transferring files from a mounted external hard drive to my iPhone. foobar2000 is a free music player app with an inbuilt FTP function for transferring music to a specific 'foobar2000 Music Folder' folder on the phone. It does not use a named site, only an IP. Both devices are connected to the same network, the desktop by ethernet and the phone by WiFi. I connect by opening the server in the app, and on the command line on my computer, I use ftp ***.***.*.**, which successfully connects, as status happily reports. Using cd appears to cause the server to forcefully close for some reason. Getting a 500 Access denied when moving files without naming issues, as you're not really meant to put anything outside of that directory.

sorry if this was unhelpful. if there's one aspect of computing I'm most clueless about it's networking. black magic.
Quote:
I forgot to say: welcome 2LQ.org !!!
Thank you!! I've used this site many times to help solve other problems before so now that I have something I can't fix on my own, this seemed like as good a place as any to find help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ftp error "553 Could not create file." alieblice Linux - Newbie 8 01-26-2013 03:50 AM
FTP '553 Could not create file' error Nasser Domingo Linux - Newbie 2 08-02-2010 07:04 AM
Email not getting through - 553 553 5.3.0 Error WorldBuilder Linux - Server 6 06-01-2008 12:13 AM
'553 Could not create file' in vsftpd FTP Server on CentOS 5 Fabian10 Linux - Server 2 11-26-2007 11:13 AM
ftp: 553 Could not create file. lothario Linux - Software 4 10-21-2006 06:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration