Operating System - HP-UX
1834935 Members
2215 Online
110071 Solutions
New Discussion

Default file protection mask for file when doing ftp

 
Patrick Li
New Member

Default file protection mask for file when doing ftp

Dear all,

Is it possible to control the default file protection mask for file ftp from a client machine, say, MS Windows to HPUX?

Thanks and Regards,
Patrick
2 REPLIES 2
RikTytgat
Honored Contributor

Re: Default file protection mask for file when doing ftp

Hi,

It is possible to start the ftp server with the switch -u . This causes all files being created by an ftp transfer to use that umask instead of the default one (027).

Usually, the ftp server is started by inetd, so to make changes permanent, edit /etc/inetd.conf, find the line for ftp and add the command line switch at the end of that line. Finally, make inetd re-read its configuration file by issuing the command inetd -c.

Hope this helps,
Bye
Antoanetta Naghiu
Esteemed Contributor

Re: Default file protection mask for file when doing ftp

Rik is right. With ftpd -l -u 000 in /etc/inetd.conf you can get the files and a script chmod them as desired. In HP-UX 10.20 I could not make it work with any other value as mask.