Operating System - HP-UX
1837208 Members
3581 Online
110115 Solutions
New Discussion

how to control the permission of file tranfered by ftp??

 
SOLVED
Go to solution
Burhan Koni
Advisor

how to control the permission of file tranfered by ftp??

Hi
I notice that the permissions for any file transfered by ftp is -rw-r-----
I want to change it to be readable to all users

Thank
Burhan Koni
3 REPLIES 3
Robert-Jan Goossens
Honored Contributor
Solution

Re: how to control the permission of file tranfered by ftp??

Hi,

This is a security risk.

You can make the change globally for the ftp service by editing
the /etc/inetd.conf file:

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -uxxx
Note: Where xxx would be the umask that you select.

After any change to the /etc/inetd.conf file, inetd must
re-read the new inetd.conf file:

# inetd -c

Regards,
Robert-Jan
John Strang
Regular Advisor

Re: how to control the permission of file tranfered by ftp??

First thing to check would be umask

man umask for more details.

John
If you never make a mistake you'll never make anything.
Chris Wilshaw
Honored Contributor

Re: how to control the permission of file tranfered by ftp??

Although setting umask is a viable option, this sets the FTP mask for ALL users, and if set to allow full read/write access (666) would be considered a security risk.

You can simply use the chmod command within the FTP session to change the permissions once the file has transferred.