This one got me thinking a bit today, and I didn’t find much in the way of info on the net, so here it is for my own and anyone else’s reference.
Solaris 9 and later ships with WU-FTPD as it’s FTP server. General configuration, is done via the /etc/ftpd/ftpaccess file, which is the same file used by WU-FTPD, just in a different location.
The problem I had was I could create directories from the command line, but couldn’t from within Gnome’s Nautilus when logging in anonymously. Every attempt resulted in:

Ah, simple permissions I thought. But wait, it can’t be as I can quite easily create directories from the command line. So I turned to logging. As soon as I enabled logging, the problem became very clear:
Bingo! Check the name it’s tried to use - “untitled folder“. My tests on the CLI didn’t include spaces. The error has also kindly told me where to look - the path-filter line in my /etc/ftpd/ftpaccess file. I checked this and sure enough, it doesn’t allow for spaces in file and directory names.
Changing the line to allow spaces…
path-filter guest,anonymous /etc/ftpd/filename.msg ^[[:alnum:][:blank:]._-]*$ ^[.-]
… resolved the issue. Note: it should all be on one line.
The same issue affects Windows users using Explorer to access FTP and create directories as it tries to create a new folder called “New Folder“.
Search
Related Entries
- Migrating from iPhoto to iView Media Pro
- HOWTO: Prevent Sendmail From Using DNS
- HOWTO: Compile GAIM On Solaris 10
- MySQL Preferences Pane on OS X Leopard
- Local Shared Object: Flash Cookies You Didn’t Know About
- It’s Firefox 3 Download Day
- Update OpenSolaris To Build 93 (aka Preview of 2008.11)
- Autoload Objects in PHP5
- Links for 1 Jul 2008 - 30 Jul 2008
- Finder Hang After Leopard Upgrade


No Responses to “WU-FTPD Files and Directories With Spaces”
Please Wait
Speak Your Mind