Operating System - HP-UX
1833702 Members
3074 Online
110062 Solutions
New Discussion

Incorrect permissions on FTP'ed files

 
SOLVED
Go to solution
Managed Services
Frequent Advisor

Incorrect permissions on FTP'ed files

I have a particular user who ftp's files onto a HPUX 10.20 server into different directories. The problem being that the permissions on the files that they have been transferred are -r--r-----.
As a different user is then required to view the file they are not able to do so as they are then classed as 'others'.
How can I allow a particular user to ftp files onto a HPUX 10.20 machine with the permissions of -rw-rw-rw-, so that other users can later view the files.
4 REPLIES 4
Daimian Woznick
Trusted Contributor
Solution

Re: Incorrect permissions on FTP'ed files

The problem could be the umask value on either the specific account utilizing ftp or the ftp daemon itself. Check the inetd.conf file for a umask setting on ftpd.
Shannon Petry
Honored Contributor

Re: Incorrect permissions on FTP'ed files

Fjirst you only need a read bit to read files, you have stated you want a write bit as well. Why? you realize that the write bit is insecure, and that anyone will be able to modify and delete this data right?

Next the answer to the problem is in a umask being set by the FTP server. Not sure if your using the standard Fort knox, or a patch for 10.20 which is wu-ftpd.

If wu-ftpd the umask is set in your /etc/ftpaccess file. man ftpd for more information.

If it's Fort knox, the umask is read from the users home. look for a umask being set in one of the dot files and change to what is appropriate.

Regards,
Shannon
Microsoft. When do you want a virus today?
Arockia Jegan
Trusted Contributor

Re: Incorrect permissions on FTP'ed files

Hi,

modify the /etc/inetd.conf file. Make the following change in that file..

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


-u 000 will give you the -rw-rw-rw- permissions for those files.

After modifying the inetd.conf file run "inetd -c" to reconfigure the internet dameons...

Managed Services
Frequent Advisor

Re: Incorrect permissions on FTP'ed files

Many thanks for your replys folks.
All sorted now!!
I used ftp -l -u 022 and it now puts the permissions as -rw-r--r--
Thanks again.