FTP Gotcha on Ubuntu (Should Be Added To The Wiki?)
I just wanted to pass on something I had to work through with regards to uploading an image. I was getting the infamous “Can’t rename/move Permission Denied” messages on the client after it had finished imaging. Most posts tell you to ensure the FTP passwords are all set corretcy in the various PHP files, make sure permissions are set correctly on the /images folder, etc. None of this worked for me.
I have a vanilla Ubuntu 14.04 server running only FOG. When I logged in using the fog user with an SCP client over SSH, I could read/write/modify/delete everything I expected to be able to. But, when I used and FTP client with the same account, I couldn’t even modify the fog user’s home directory. What I discovered was that in my /etc/vsftpd.conf file, ```
Hope this can help someone else out because I didn't se this as a solution anywhere else
This server actually started out as Ubuntu 12.04 I had some issues prior to getting this far, decided to upgrade the server, and didn’t get the image upload to even start until after the server was on 14.04. So, I’m not sure if that setting was in place from Ubuntu 12.04 or not. One of he Wiki pages advises you to backup any changes made to vsftpd.conf before doing a FOG upgrade. What modifications to the file does it do?
Normally, there’s a Priv Sock issue which is auto corrected for, now, in the installer. I’m not aware of write_enable.
After a quick search in the WiKi for vsftpd.conf with only two hits, I agree that there should be more documentation about this.
I’ll work on adding examples for FTP configuration into the WiKi.