1832978 Members
2822 Online
110048 Solutions
New Discussion

Re: FTPONLY

 
Dave La Mar
Honored Contributor

FTPONLY

I have set up an ftponly group and one user.
This user can ls the directory but not ren a file.
Where do I set this permission (The ftp session says permission denied -(rename))?
Presently, I have ls only in this users's bin directory.
Note this user is restricted to a single directory where the user will put and rename files created by the user.
Home directory is on HP-UX 11.
Thanks for any input.
dl
dl
"I'm not dumb. I just have a command of thoroughly useless information."
9 REPLIES 9
Mark Greene_1
Honored Contributor

Re: FTPONLY

the user needs to have write permissions for the directory in order to mv/cp/rename files.

--
mark
the future will be a lot like now, only later
Craig Rants
Honored Contributor

Re: FTPONLY

Ditto Mark's comment, maybe you should tell Shiju how you set up your ftp stuff.

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Dave La Mar
Honored Contributor

Re: FTPONLY

I pretty much followed Doc A5651654.
This shows how to setup an ftponly group and user as well as copy in the ls command for use by the ftponly user.
Now I want the ftponly user to be able to rename files in the restricted directory.
I tried copying in the mv command as ren and rename but still get the error when the user tries to rename a file for which he/she is the user.
dl
"I'm not dumb. I just have a command of thoroughly useless information."
Deepak Extross
Honored Contributor

Re: FTPONLY

In that case, maybe you should print a welcome message on login advising the users to do a "put ".
This may avoid the need to rename files after putting.
Dave La Mar
Honored Contributor

Re: FTPONLY

Deepak -
The scenario is -
The user puts the file with a certain extension so no scripts tries to get it while it is still being transmitted.
After successful transmission the user must rename the file to some other extension indicating it is complete and ready for processing.
Thanks.
dl
"I'm not dumb. I just have a command of thoroughly useless information."
Helen French
Honored Contributor

Re: FTPONLY

Craig, thanks for the reference!

dl, i was looking for doing the same setup ! i mean restricting the ftp_user in his home_dir. i would apprecaite if you can help

thanks ...
Life is a promise, fulfill it!
Dave La Mar
Honored Contributor

Re: FTPONLY

Shiju -
Please see the doc I referenced in a previous response.
Originally I used a doc I found from some user on the forum, but it was pretty much the same as the doc referenced.
The login seems to work fine for what I intended.
a. Restricts the user to a single directory with sub directories.
b. Exits if the user tries to perform shell commands outside the home directory.

The only problem I have encountered is this rename problem. The user is the owner, has rw, but cannot rename.
Please advise as to the forum question you submitted so I can reply directly to it.
In the mean time, take a look at the doc. It's pretty straight forward.
Best of luck.
dl
"I'm not dumb. I just have a command of thoroughly useless information."
Helen French
Honored Contributor

Re: FTPONLY

thanks dl ... 'am sorry :(( no points to assign !

Shiju
Life is a promise, fulfill it!
Dave La Mar
Honored Contributor

Re: FTPONLY

Forum -
doc NR0801KBRC00007714
solves the problem coupled with A5651654.
Thanks for all the input.
dl
"I'm not dumb. I just have a command of thoroughly useless information."