Operating System - HP-UX
1833807 Members
4230 Online
110063 Solutions
New Discussion

Re: Restricting Ftp access to a name and host

 
SOLVED
Go to solution
Steve Hart
Occasional Advisor

Restricting Ftp access to a name and host

What I want to do is restrict access to a named ftp account from a known host.

for example:
I would wish to block
ftp user Y from host A accessing the system
and at the same time allowing
ftp user X from host A to access the system.

Any ideas
Steve
7 REPLIES 7
harry d brown jr
Honored Contributor

Re: Restricting Ftp access to a name and host

man ftpaccess

live free or die
harry d brown jr
Live Free or Die
Steve Hart
Occasional Advisor

Re: Restricting Ftp access to a name and host

I have check the man page and cannot see how this will help with my specific requirements.
harry d brown jr
Honored Contributor

Re: Restricting Ftp access to a name and host

Read http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0xdacea1abbac8d5118ff10090279cd0f9%2C00.html&admit=716493758+1111669336868+28353475

also a quick search on ftpaccess will yield a lot of results.

live free or die
harry d brown jr
Live Free or Die
Steve Hart
Occasional Advisor

Re: Restricting Ftp access to a name and host

Harry,

I already have restricted the access to the server using ftpaccess, and /usr/bin/false etc.

What I want to do is tie down an account to a specific IP address. but not deny access to other ftp accounts on the server from that same ip address.

Steve
Christopher Caldwell
Honored Contributor
Solution

Re: Restricting Ftp access to a name and host

Ermin Borovac
Honored Contributor

Re: Restricting Ftp access to a name and host

To achieve this you can create /etc/ftpd/ftphosts with the following line.

deny usery hosta
Steve Hart
Occasional Advisor

Re: Restricting Ftp access to a name and host

ftphosts was the answer, many thanks