Operating System - HP-UX
1834745 Members
2893 Online
110070 Solutions
New Discussion

FTP user with File Creation permissions

 
SOLVED
Go to solution
Abdullah Abu Diyab
Occasional Contributor

FTP user with File Creation permissions

Dear All,

I create a user with only ftp access.
What I want is the following :

How I can modify the ftpaccess file so I make the user with ftp permission whenever he put any file in the server it is created with the followin permission

Read/Write Read Read --> 022 or -rw-r--r--

I do not know how to use umask in this file !


Kind Regards
6 REPLIES 6
Jean-Luc Oudart
Honored Contributor
Solution

Re: FTP user with File Creation permissions

Robert-Jan Goossens
Honored Contributor

Re: FTP user with File Creation permissions

Hi,

Take a look at next doc,

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

Hope it helps,

Robert-Jan.
T G Manikandan
Honored Contributor

Re: FTP user with File Creation permissions

By default umask is 000
ie.e. rw-rw-rw-

you can do a
ftp>umask 022

which should put files with the required permission.

If it is for all users change in your /etc/inetd.conf file


ftp stream tcp nowait root /etc/ftpd ftpd -u022

Re-read your /etc/inetd.conf file using

/usr/sbin/inetd -c


Revert
Dave La Mar
Honored Contributor

Re: FTP user with File Creation permissions

I think you will find what you want in this link. Took us a few tries but resulted in success.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=207772

Best of luck.

Regards,
dl
"I'm not dumb. I just have a command of thoroughly useless information."
Alzhy
Honored Contributor

Re: FTP user with File Creation permissions

If you want all your FTP users to have a particular defualt umask, then you need to set it in inetd:

Edit inetd.conf the line for ftpd from:
ftp stream tcp nowait root /usr/lbin/tcpd /usr/lbin/ftpd -ld
to:
ftp stream tcp nowait root /usr/lbin/tcpd /usr/lbin/ftpd -ld -u 022

Then HUP the inetd process. kill -HUP PID-of-inetd

HTH.

Hakuna Matata.
Abdullah Abu Diyab
Occasional Contributor

Re: FTP user with File Creation permissions



BIG THANKX TO ALL OF YOU.

It works fine.

Kind Regards