Operating System - HP-UX
1748142 Members
3825 Online
108758 Solutions
New Discussion

Re: UMASK for ftp account

 
sandeep15
New Member

UMASK for ftp account

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

1 REPLY 1
Bill Hassell
Honored Contributor

Re: UMASK for ftp account

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:

 

ftpaccess

ftpgroups

ftpusers

ftphosts

 

There is a man page for each file.

 

 

 

 

 

 

 



Bill Hassell, sysadmin