File transferred by FTP not taking UMASK settings.
Hi,
UMASK value of an ftp account, TSTFTP, on the destination machine is: Code:
$ id Code:
$ touch test.txt Code:
$ls -ltr ftp.txt Code:
$ ls -ltr ftp.txt |
what FTP program are you using? I know in vsftpd there is a local_umask setting. Perhaps you have the same and it take precedence.
|
That's what I figured too when I searched online. Both the boxes use the nattive FTP program in the OS (AIX). I am lost as to where this order of precedence is coming from, if that is what the issue is.
|
I no longer have access to AIX server to place with, however, this looks like the answer to me: http://publib.boulder.ibm.com/infoce...cmds2/ftpd.htm
Search for "-u OctalVal" - that seems to set the umask value. |
Thanks to zQUEz's directing me to the relevant resource I was able to resolve the issue.
FTP daemon, by default, has a UMASK value of 027 which gives the files FTPd a permission of rw-r-----. To have this changed to rw-rw----, the following entry in /etc/inet.conf: Code:
ftp stream tcp6 nowait root /usr/sbin/ftpd /usr/sbin/ftpd -l -d Code:
ftp stream tcp6 nowait root /usr/sbin/ftpd /usr/sbin/ftpd -l -d -u 007 Code:
refresh -s inetd |
setting umask value for ftp in redhat
Here ftp's(anonymous) default file permission is,after upload 700(777-077=700). You may wish to change this to 744,Please add below entry to /etc/vsftpd/vsftpd.conf file
anon_umask=033 After changes you should get below permission drwxr--r-- 2 14 50 4096 May 22 10:40 Thangamariappan |
All times are GMT -5. The time now is 12:00 AM. |