1852029 Members
6703 Online
104063 Solutions
New Discussion

Using FTP

 
SOLVED
Go to solution
Wagner Villela
Advisor

Using FTP


Dear friends

I need to give access ftp to an user who daily makes download of some archives in the HP server. I need that it does not obtain to dislocate itself among other directories that not your home directory. How I can make this? I tried to use rsh, but the ftp does not respect shell restricted.

I thank any idea.

Wagner
Wagner
4 REPLIES 4
Mladen Despic
Honored Contributor
Solution

Re: Using FTP

 
Sanjay_6
Honored Contributor

Re: Using FTP

Hi Wagner,

If you are running 11.0, try ftpaccess. Do "man ftpaccess" for more info on the options with ftpaccess.

Try this link on how to etup ftpaccess on your system,

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

Hope this helps.

Regds
Wagner Villela
Advisor

Re: Using FTP


Mlden

Problem 100% fixed.

Thank you
Wagner
Shannon Petry
Honored Contributor

Re: Using FTP

ftpaccess has nothing to do with your needs!

I'll simplify the process for you.
1st change the users shell to '/usr/bin/false'
2nd create a file /etc/shells containing the following
/usr/bin/false
/bin/sh
/sbin/sh
/usr/bin/sh
/bin/ksh
/usr/bin/ksh
/bin/csh
/usr/bin/csh

Now the user can FTP only to the system.
Next,
change the users home directory to /home/./user
the /./ indicates to wu-ftpd where to chroot a user to.
in the /./ directory you will need a bin direcory wich mod 555.
copy the fillowing files to that bin directory
/sbin/ls
/sbin/tar
Now in your /./bin directory type
ln -s ./ls ./dir

That's it, your all done!
There is oodles of other information on the site for anonymous FTP and wu-ftpd so feel free to look.

NOTE: 10.20 shipped with Fort Knox proxy which does not support chroot'ed environments.
As 2 ftp servers are supported in hp-ux 11.x make sure you have wu-ftpd installed.

Regards,
Shannon
Microsoft. When do you want a virus today?