default file/directory permission and owner
Posted: Thu Jan 28, 2010 1:47 pm
I am trying to setup a wingftp server on Linux Redhat 5.4.
How can you change the permission and ownership when uploading files/creating directories?
The out-of-the box settings of wingftp is to create files with 666 and directories with 777 permission
and the owner of the files is root. With the owner "root" of the files I could somehow live, but the
world-writable part is pretty scary on a unix system.
As a workaround I have tried to use "Execute Program" with OnFileUploaded and OnDirCreated
to fix the permission/ownership. This works for OnFileUploaded but with OnDirCreated I don't
know how to pass the directory name to the external program.
Maybe there is a nice way to fix this problem.
How can you change the permission and ownership when uploading files/creating directories?
The out-of-the box settings of wingftp is to create files with 666 and directories with 777 permission
and the owner of the files is root. With the owner "root" of the files I could somehow live, but the
world-writable part is pretty scary on a unix system.
As a workaround I have tried to use "Execute Program" with OnFileUploaded and OnDirCreated
to fix the permission/ownership. This works for OnFileUploaded but with OnDirCreated I don't
know how to pass the directory name to the external program.
Maybe there is a nice way to fix this problem.