Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Security > How to Only permit specific users FTP Login

Forgot Password?
 Linux Security   Discussion about keeping your machines secure, and the crackers out.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 06-07-2009   #1 (permalink)
Just Joined!
 
Join Date: Feb 2009
Posts: 4
How to Only permit specific users FTP Login

Hello,

I have some hackers trying to get in through FTP login. They normally use users who do not exist. The FTP usernames we have are unique and would be very difficult to even guess the username let alone the corresponding password.

Anyway - I see people trying to get in via FTP with 'root' , 'postres', 'mysql' , etc.

I have used IPTables to block all SSH connections except from my IP or the console. That seems to be working wonders. What I would like to do is not the same though. I would like to block out all FTP connections except from the two usernames which I have in mind. How can I achieve this?

Thank you,
Chep
chep is offline  


Reply With Quote
Old 06-07-2009   #2 (permalink)
Super Moderator
 
Dapper Dan's Avatar
 
Join Date: Oct 2004
Location: The Sovereign State of South Carolina
Posts: 4,136
Send a message via AIM to Dapper Dan
It's probably a bot trying your ftp port/server with different names and passwords. Ftp uses port 21 as the default. Is that the port you are presently using? You can set ftp up under another port number than the one "they" are attempting to enter by. This is not a total security solution but is one of several things you can do to make it harder for them. You can change ports by editing your ftp server config file in most cases. I use proftpd so the file I'd edit would be /etc/proftpd/proftpd.conf. Be sure to restart your ftp server after making the changes.
__________________
CRUX 2.5 + IceWM Registered:#371367 New Members: click here
Dapper Dan is offline   Reply With Quote
Old 2 Weeks Ago   #3 (permalink)
Just Joined!
 
Join Date: May 2009
Posts: 3
Hi,

if you are using vsftpd deamon the access to specific users can be restricted through /etc/vsftpd/ftpusers - the file consist of users whose ftp access is not allowed

/etc/vsftpd/ftpuser

# Users that are not allowed to login via ftp
#root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
ahamedoaa is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 11:48 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2