1753705 Members
4758 Online
108799 Solutions
New Discussion юеВ

Re: ftp permission

 
Jose Luis
Advisor

ftp permission

Hi everybody,
Please help me with this question:

I want to change the default permissions for files tranfered with ftp (644) to my user home from other server.
Can do I something for when the files to be transfered to remain permission with 664?
Does exist a hidden file in the user home it can set this permissions?

Thank's in advance.
Best Regards.
The UNIX world is the tenth planet in the solar system
4 REPLIES 4
Paul Sperry
Honored Contributor

Re: ftp permission

you can set the umask for ftp in the /etc/inetd.conf file.

just add -u "###" to the end of the ftp line
Jose Luis
Advisor

Re: ftp permission

Thank's Paul for your answer.
I think your solution is for all the system (all users) or not?
Can do I for my user home only?

Thank's a lot.
The UNIX world is the tenth planet in the solar system
James R. Ferguson
Acclaimed Contributor

Re: ftp permission

Hi Jose:

Have a look at the 'ftpaccess(4)' file. The 'upload' specifications should offer what you want.

http://www.docs.hp.com/en/B2355-60127/ftpaccess.4.html

Regards!

...JRF...
Khashru
Valued Contributor

Re: ftp permission

This is an example from a production server running hp-ux 11i.

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -i -o
-u117