Operating System - HP-UX
1836579 Members
1502 Online
110102 Solutions
New Discussion

Re: File permissions when creating files using ftp

 
YD_1
Occasional Contributor

File permissions when creating files using ftp

Hello,

How do i set file permissions so that it fits
umask 022 when i ftp?

thanks

YD
3 REPLIES 3
Alexander M. Ermes
Honored Contributor

Re: File permissions when creating files using ftp

Hi there.
Check your /etc/inetd.conf.
setup ftp like :

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -u 022

Please look at the manpages for detailed info.
Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Volker Borowski
Honored Contributor

Re: File permissions when creating files using ftp

If you do not have your hands on the daemon, you can set ist on the clientside either

ftp> umask (available on HP)

ftp> remote site umask (common)
ftp> literal site umask (NT)

Volker
federico_3
Honored Contributor

Re: File permissions when creating files using ftp

in /etc/inetd.conf put:

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -u 022

and let inetd read the file using:
/usr/sbin/inetd -c