Operating System - HP-UX
1820072 Members
2447 Online
109608 Solutions
New Discussion юеВ

Restrict ftp clent session from change directory (cd command should not work)

 
SOLVED
Go to solution
MLReddy
New Member

Restrict ftp clent session from change directory (cd command should not work)

Hi,

i want to restrict my ftp client session, from change directory after establishing a connection with remote server. i want to transfer files in to the default directory, which gets after establishing connection to the remote server. is there any option or way to restict from my ftp client session. please help me on the same.

Thanks in Advance.
MLReddy
5 REPLIES 5
Arunvijai_4
Honored Contributor
Solution

Re: Restrict ftp clent session from change directory (cd command should not work)

You can find information here,

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=698692
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=837471

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: Restrict ftp clent session from change directory (cd command should not work)

You have to setup your ftp account ftponly regardingly.

Example:

guest1::100:92:Guest Account:/ftp/./incoming:/etc/ftponly

When guest1 successfully logs in, the ftp server will chroot
(/ftp) and then chdir (/incoming). The guest user will only be
able to access the directory structure under /ftp (which will
look and act as / to guest1), just as an anonymous FTP user
would.

To control directory structure, change /ftp to your requirement.

hth.
Easy to suggest when don't know about the problem!
MLReddy
New Member

Re: Restrict ftp clent session from change directory (cd command should not work)

Thank you very much Arunvijai and Muthukumar, My problem got resolved.
Muthukumar_5
Honored Contributor

Re: Restrict ftp clent session from change directory (cd command should not work)

It is good. On getting solution then reply with that solution and assigning points to the responders. Close thread also. I hope you are a new member so suggesting you to follow this.

hth.
Easy to suggest when don't know about the problem!
MLReddy
New Member

Re: Restrict ftp clent session from change directory (cd command should not work)

i have setup account with ftp only.