zempher
January 5th, 2007, 12:56 PM
I have an FTP server that receives images from an IP camera on a constant 15 minute basis. I then use cron to run a script which renames the file and places it in a different folder for "http" reasons. Here is my problem...
Regardless of what chmod changes I make, I cannot get the new files to inherit the security I want. Basically, I need for the posted .jpg file in the /var/www folder to allow anyone to read, but only a specified user to write. As for the FTP, I need for anonymous users to always be able to read and execute, but not write.
At first I tried chmod -R 755 /<ftp directory>. I then changed to chmod -R 705 />ftp directory>.
What am I doing wrong, because any file changes after the chmod do not inherit the applied security.
Thanks and please be kind, as I am very new to Ubuntu!
Regardless of what chmod changes I make, I cannot get the new files to inherit the security I want. Basically, I need for the posted .jpg file in the /var/www folder to allow anyone to read, but only a specified user to write. As for the FTP, I need for anonymous users to always be able to read and execute, but not write.
At first I tried chmod -R 755 /<ftp directory>. I then changed to chmod -R 705 />ftp directory>.
What am I doing wrong, because any file changes after the chmod do not inherit the applied security.
Thanks and please be kind, as I am very new to Ubuntu!