1826219 Members
3035 Online
109691 Solutions
New Discussion

FTP umask

 
SOLVED
Go to solution
John Jacobs_1
Occasional Contributor

FTP umask

How do I set the default umask for ftp so that all received files have 666 permissions?
7 REPLIES 7
Marco Santerre
Honored Contributor
Solution

Re: FTP umask

if you want to change the default umask for ftp, you have to change your ftpd line in /etc/inetd.conf to add the -u option and the umask you want to give it.
Cooperation is doing with a smile what you have to do anyhow.
Ken Hubnik_2
Honored Contributor

Re: FTP umask

There is a umask set option for ftp. startup ftp and do a help umask.
Robert-Jan Goossens
Honored Contributor

Re: FTP umask

Hi,

you change it in: /etc/inetd.conf, as e.g:

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

Then you issue: /usr/sbin/inetd -c to force the current inetd
to reread /etc/inetd.conf

this example is for permission 640.

Hope it helps,

Robert-Jan.
Ravi_8
Honored Contributor

Re: FTP umask

Hi,

replace the line
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l

in /etc/inetd.conf with

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -u 111

restart the inetd process (inetd -c)
never give up
James R. Ferguson
Acclaimed Contributor

Re: FTP umask

Hi:

Modify your 'etc/inetd.conf' file's 'ftp' entry to specify (or add) the option :

-u 111

Then issue:

# inetd -c

...ro reread the inetd.conf configuration.

Regards!

...JRF...
John Jacobs_1
Occasional Contributor

Re: FTP umask

Thanks to allof you for your quick response. It was exactly what I needed to know.
Steven E. Protter
Exalted Contributor

Re: FTP umask

Use note: The OS will not let you make default mask of ftp executable.

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