Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Default umask when logging in through FTP is 027 .

I want to change this to 002 so a process with the same group can consume an uploaded file.

Man 'ftpd' page says pass -u 002 to the ftpd command. But my problem is I can't find where ftpd is started from. So my question is, how to pass -u 002 to ftpd on startup? I can't find an /etc/init.d/ script.

Details: Red Hat Enterprise Linux Server release 5.3 (Linux 2.6.18-128.1.1.el5 )

RPM installed: ftp-0.17-35.el5 (rpm -qa | grep ftp)

which ftpd: /usr/kerberos/sbin/ftpd

share|improve this question
up vote 3 down vote accepted

First - your ftpd is not from ftp package. If you try rpm -qf /usr/kerberos/sbin/ftpd then you see a name of real one (something like krb5-appl-servers-1.0.1-7.el6_2.1.x86_64). This FTP server is started by xinetd and configuration is in /etc/xinetd.d/gssftp . One of parameters is:

server_args     = -l -a

and you can add your flags here:

server_args     = -l -a -u 002

next you must restart xinetd service (service xinetd restart) and it should work as you need.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.