Operating System - HP-UX
1833247 Members
2932 Online
110051 Solutions
New Discussion

Re: file permission (ftp session) ?

 
Nabil Boussetta
Frequent Advisor

file permission (ftp session) ?

how to modify file permission (at creation of the file) on ftp sessions.
6 REPLIES 6
john korterman
Honored Contributor

Re: file permission (ftp session) ?

Hi,
you can use umask in an established ftp session; try that before getting or putting anything.

regards,
John K.
it would be nice if you always got a second chance
Nabil Boussetta
Frequent Advisor

Re: file permission (ftp session) ?

umask don't work on ftp session
Joseph Loo
Honored Contributor

Re: file permission (ftp session) ?

hi,

2 ways:

globally, modify ftp daemon in /etc/inetd.conf
or
reset umask settings in a ftp session (this will not work from windows but for some ftp software, it comes with the umask options).

refer to this doc:

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062952400

regards.
what you do not see does not mean you should not believe
Michael Schulte zur Sur
Honored Contributor

Re: file permission (ftp session) ?

Hi,

what type of host is the client and what is the server?
There is also the site chmod command.
How did you try to set the umask and what error did pop up?

greetings,

Michael
Paul_481
Respected Contributor

Re: file permission (ftp session) ?

Hi Nabil,

This is for all ftp sessions, try editing the /etc/inted.conf

vi /etc/inetd.conf

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

add -u 007 or the umask that you want

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

regards,
Paul
Alan Meyer_4
Respected Contributor

Re: file permission (ftp session) ?

you can use the upload line in the ftpaccess file to set ownership/group and file creation permissions
" I may not be certified, but I am certifiable... "