I know this is off topic of this forum, but I did not see a forum specifically for it.
I am using a PHP script from menalto. I am using php as an apache module, so the script executes as "nobody". The script created a file, filename.dat. I needed to manually edit the file. I downloaded it, edited it, and got a permission error when I tried to upload it. I logged into SSH as root, navigated to this user's directory, then did ls -l and the permissions for it were shown as "-rw-r--r--" I then did "chown theuser filename.dat" and "chmod 777 filename.dat" I still could not upload the file.
I did "pico filename.dat" and it came up in the pico text editor. I was able to paste in the contents of the file and save it. I then returned ownership of the file to "nobody" and chmod'd it back to 644.
My question: Why couldn't I upload it by FTP? What did I do wrong so I can do it right in the future.