11-18-2013 06:10 PM - last edited on 11-18-2013 10:16 PM by maikoro
I am facing a problem where permission of a file created by a ftp account has a permission 660 while files created by the otherftp account is 644. Is this problem related to the umask for that ftp account...and if it is so then how can i change the umask value for that account?
P.S. This thread has been moved from HP-UX > System Administration to HP-UX > networking. - Hp Forum Moderator
11-19-2013 06:04 AM
There's a number of items that we need to know about this ftp problem:
1. Model of system and version of HP-UX (ftp has changed over the last 20 years)
2. Is the permission seen on the HP-UX side (incoming files) or the destination?
There are a couple of locations for ftp permissions:
/etc/inetd.conf: ftp stream tcp6 nowait root /usr/lbin/ftpd ftpd -l -u 022 -v -X -L
This example has several options but the umask value is -u 022 which would result in 644 permissions for all incoming files. This is the basic ftp line for old and newer versions of ftp.
For newer systems (11.00 and later), ftpd is the WU-FTPD code and uses several config files in /etc/ftpd.
Look at the files in /etc/ftpd:
There is a man page for each file.