1834051 Members
2277 Online
110063 Solutions
New Discussion

umask for ftp

 
SOLVED
Go to solution
Kerry Fay
Occasional Advisor

umask for ftp

Is there any way to set the umask for files
that are ftp'd to the server to 777
automatically ?
Or files that are ftp'd by specific users
to 777 automatically?
3 REPLIES 3
Sanjay_6
Honored Contributor

Re: umask for ftp

James R. Ferguson
Acclaimed Contributor
Solution

Re: umask for ftp

Kerry:

Edit '/etc/inetd.conf' to add '-u nnn' to the 'ftpd' daemon declaration, where "nnn" is the umask setting for the 'ftpd' daemon you want, something like:

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

Then restart 'inetd' with:

# /usr/sbin/inetd -c

This will establish a default umask for all ftp transfers.

Regards!

...JRF...
Daryl UnRuh
New Member

Re: umask for ftp

Here's a thread with info on setting the mask per location (upload directory) that may suit you better.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x6ef1c6af36b7d5118ff10090279cd0f9,00.html

-Dale