Re: UMASK for ftp account (161 Views)
Reply
Occasional Visitor
sandeep15
Posts: 1
Registered: ‎11-18-2013
Message 1 of 2 (185 Views)

UMASK for ftp account

[ Edited ]

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

Honored Contributor
Bill Hassell
Posts: 14,210
Registered: ‎05-29-2000
Message 2 of 2 (161 Views)

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.

 

 

 

 

 

 

 

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.