Operating System - Linux
1821244 Members
2850 Online
109632 Solutions
New Discussion юеВ

How to upload files permission 644 via ftp

 
SOLVED
Go to solution
file system
Frequent Advisor

How to upload files permission 644 via ftp

when I upload files via ftp, those files are permission 640.
I want those file is transfred to permission 644.
but it did not work.
how can I get it done?

1. when I upload those files with specific user not all users, those files should be permission 644.

5 REPLIES 5
Ivan Krastev
Honored Contributor

Re: How to upload files permission 644 via ftp

What is your ftp client ?
For vsftpd see "file_open_mode" from vsftpd.conf.5 man page. Here is more info - http://www.vsftpdrocks.org/faq/


regards,
ivan
file system
Frequent Advisor

Re: How to upload files permission 644 via ftp

Thank you Ivan Krastev' help.
system is running with ftpd. not vsftp.
Dose any other tips not using vsftpd?

I have to use ftpd in our circumstances.
Ivan Krastev
Honored Contributor
Solution

Re: How to upload files permission 644 via ftp

For ftpd see -u parameter:
" -u umask Sets the umask for the ftpd process.The default value is normally 027."


Here is more info - http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=96570

regards,
ivan
file system
Frequent Advisor

Re: How to upload files permission 644 via ftp

Ivan Krastev
thank you all your reply.
I have followed your second reply.
and I found the gssftp file with paramter umask option.
so I modifed the option like
server_args = -l -u 022

and restart the xinetd service.

thank you again.
Good luck!!
Steven E. Protter
Exalted Contributor

Re: How to upload files permission 644 via ftp

Shalom,

Note that vsftpd, the standard linux ftp server will nto be restarted via xinetd in later versions of linux. It has its own daemon called vsftpd

service vsftpd restart

Its always helpful to take note of the Linux version to receive more precise help.

Have fun.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com