I've got a python script running on some client machines that calls home to an Ubuntu 8.04 LTS server running ProFTP..
I created a user called userftp on the server and have hopefully denied it shell access with this:
sudo useradd userftp -p your_password -d /home/FTP-shared -s /bin/false
I had initially set permissons on the /home/FTP-shared directory with :
sudo chmod 755 FTP-shared
But when the script ran from a client, it could not write to that directory..
So I set permissions on /home/FTP-shared with :
sudo chmod 777 FTP-shared
So /home/FTP-shared now has its access set as :
drwxrwxrwx 4 root root 4096 2010-03-04 21:11 FTP-shared
I don't like the fact that the directory is now wide open... Is there a safer way to do this, or since the client has to write to it, is this the only way?