LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-25-2009, 12:08 PM   #1
xoink
LQ Newbie
 
Registered: Mar 2009
Posts: 2

Rep: Reputation: 0
restrict ftp user to specific ip address?


Right now I have RHEL 4 server using vsftpd. I have restricted access to certain IP addresses using TCP Wrappers but I would like to restrict X account from logging in on Y IP. Is that possible? I have read in the FAQ for vsftpd that it is do able in PAM but I haven't found anything that says how to do it in PAM. I would appreciate a point in the right direction.

Thanks!
 
Old 03-25-2009, 07:47 PM   #2
paulslittlebit
LQ Newbie
 
Registered: Apr 2008
Location: Texas
Distribution: LFS 6.4
Posts: 11

Rep: Reputation: 1
Hello xoink.
I don't know about vsftpd but what I did was set up a user account with a home dir. Then when someone tried to log on they had to enter there username and password to then they were restricted to there home dir.
 
Old 03-26-2009, 09:37 AM   #3
xoink
LQ Newbie
 
Registered: Mar 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the reply. I have my users created and they are restricted to their home directory. I have restricted which IPs can ftp to the server. I just wanted to take it one step forward and say that account1 can't connect unless it comes from 192.168.0.2, account2 can't connect unless it comes from 192.168.0.3.
 
Old 03-26-2009, 03:12 PM   #4
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,300

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by xoink View Post
Thanks for the reply. I have my users created and they are restricted to their home directory. I have restricted which IPs can ftp to the server. I just wanted to take it one step forward and say that account1 can't connect unless it comes from 192.168.0.2, account2 can't connect unless it comes from 192.168.0.3.
I guess this could help you out.

http://www.linuxtopia.org/online_boo...pwrappers.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to restrict ftp user manish_meet_in Linux - Newbie 9 05-31-2006 11:52 PM
To restrict a specific user simi_virgo Linux - Newbie 1 02-26-2005 12:03 AM
how can i restrict /etc/motd for a specific user mtest Programming 8 10-30-2003 01:41 AM
Restrict User to FTP Only maxhugen Linux - Security 3 10-23-2003 06:01 PM
How to restrict user (FTP)? Rex_chaos Linux - Networking 2 03-19-2003 04:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration