1833788 Members
2599 Online
110063 Solutions
New Discussion

FTP permission..

 
SOLVED
Go to solution
Balakumar M
Frequent Advisor

FTP permission..

Hi All,
While FTP a file in one of our server we are facing permission problem, when I try to get a file from other server through FTP the file permission is 640 but we want 644. where I have to change the permission for incoming file? the umask value is 022. Please guide me to solve the problem.

thanks
Life is a continues learning process
6 REPLIES 6
Denver Osborn
Honored Contributor

Re: FTP permission..

When you have your ftp session open, what does umask return?

I think the default umask for ftpd is 027. Type 'umask 022' from your ftp prompt to change it.
Balakumar M
Frequent Advisor

Re: FTP permission..

Hi Thanks,
How can i change the default file premission
umask 027 ot 022?
Life is a continues learning process
Balakumar M
Frequent Advisor

Re: FTP permission..

Hi Thanks,
How can i change the default file premission
umask 027 ot 022 permantly
Life is a continues learning process
Vincenzo Restuccia
Honored Contributor

Re: FTP permission..

In .profile umask 027.
James R. Ferguson
Acclaimed Contributor
Solution

Re: FTP permission..

Hi:

The default umask for the ftpd daemon is 027. This can be changed by adding the '-u ' argument in /etc/inetd.conf as :

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

Once changed, restart with:

# /usr/sbin/inetd -c

...JRF...
Shannon Petry
Honored Contributor

Re: FTP permission..

If you are running wu-ftpd, JRF's fix will not work. The umask for wu-ftpd is set in $FTPHOME/etc/ftpaccess!

Just my $.02! :)

I'll advertize again and say look at "http://www.invenioeng.com/systems/ftpd_faq.html" for information on configuration and control files for ftpd!

Regards,
Shannon
Microsoft. When do you want a virus today?