on 01-09-2007 7:42 AM
Hi
1. Depending on the ftp server you can set the umask on a per-user basis.
You could have the script log in as a dedicated user with a 022 umask.
2. You can also use a 3rd party FTP client (like CuteFP etc.,) allows you to set permission for files and directories on your remote host during transfer. This function is often called chmod or set permissions in the program menu.
3. Some machines allow you to preset in special files (.htaccess) as well
Hope this helps
Cheers
Senthil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You should setup a secure anonymous ftp server..
Modern ftp daemons support all kinds of useful commands, such as chmod, that allow outsiders to undo your careful permission settings. They also have configuration options (WuFTP) to acheive this.
You should ask your FTP (wu-ftp)server admin to enable extention set.
Your windows client does not support a chmod command.
In such case, chmod via the quote command with your client should
support. Something like
<b><i>ftp> quote site chmod yyy fileName</i></b>
where "yyy" is the octal number for the permission
Hope this helps
Regards
Senthil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.