Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-10-2012, 10:32 AM
|
#1
|
|
LQ Newbie
Registered: Jan 2012
Posts: 1
Rep: 
|
how to deny user from accessing FTP service using /etc/hosts.deny in redhat 6
how to deny user from accessing FTP service,restrict using /etc/hosts.deny in REDHAT6....
|
|
|
|
01-10-2012, 12:15 PM
|
#2
|
|
Senior Member
Registered: May 2007
Distribution: RHEL, CentOS
Posts: 1,232
Rep:
|
Quote:
Originally Posted by raasukutty
how to deny user from accessing FTP service,restrict using /etc/hosts.deny in REDHAT6....
|
You can use /etc/vsftpd/ftpusers file, no need to use TCP Wrappers for this.
See this thread.
|
|
|
|
01-10-2012, 12:47 PM
|
#3
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 11,822
|
Quote:
Originally Posted by vikas027
You can use /etc/vsftpd/ftpusers file, no need to use TCP Wrappers for this.
See this thread.
|
The OP specifically asked about using TCP wrappers..wouldn't it be best to address the need? And the thread you directed to is ten years old...quite a bit has changed.
OP, RedHat's knowledgebase has articles on this. Read the man pages for hosts_access, too:
http://docs.redhat.com/docs/en-US/Re...rs-access.html
You don't say what FTP server you're using, but wu_ftpd, pureftp, and vsftpd all have ways of doing this as well.
|
|
|
|
01-11-2012, 10:56 AM
|
#4
|
|
Member
Registered: Jan 2006
Location: USA
Posts: 460
Rep:
|
"user" and hosts.deny is not typical, not like peanut butter & jelly.
i am not a big user of hosts.deny/allow,
typically hosts.deny/allow use hostnames or IP. however, maybe a way to mix "user" in with hosts.deny/allow is to use hosts.allow with something like "in.ftpd ALL:" and spawn a script that reads a file "not-allowed-ftp-users" and then finds a ftpd PID that matches username from file list and then kill the PID.
sounds like it can work, just not sure if this is what you are needing, meaning there are other better ways to handle such, but you asked about hosts.deny, etc.
|
|
|
|
01-19-2012, 08:23 AM
|
#5
|
|
Member
Registered: Sep 2007
Location: /root/
Distribution: Arch, CentOS, Debian, FreeBSD, Slackware, Solaris, SuSE (Open & SLES)
Posts: 115
Rep:
|
Quote:
Originally Posted by TB0ne
The OP specifically asked about using TCP wrappers..wouldn't it be best to address the need? And the thread you directed to is ten years old...quite a bit has changed.
|
Redhat 6 is more than 10 years old (though I concede that he may have meant RHEL 6 rather than Redhat 6) and TCP wrappers isn't the correct way block specific users from FTP (in many cases, it's not even possible). If you want to block specific users then you need to blacklist them in the FTP server settings (as the guy you quoted correctly advised)
|
|
|
|
01-19-2012, 11:06 AM
|
#6
|
|
Guru
Registered: Aug 2005
Posts: 9,557
|
if it is RH6 then it should not be still connected to the net
IF it is RHEL6.2 then i would NOT use the host file
add a FTP user group and set a SElinux rule to only allow THAT group
|
|
|
1 members found this post helpful.
|
01-19-2012, 04:32 PM
|
#7
|
|
Member
Registered: Sep 2007
Location: /root/
Distribution: Arch, CentOS, Debian, FreeBSD, Slackware, Solaris, SuSE (Open & SLES)
Posts: 115
Rep:
|
Quote:
Originally Posted by John VV
if it is RH6 then it should not be still connected to the net
|
Indeed, but you'd be amazed at some of the old systems that are still in use (in my last job, there was a Win95 desktop still being used as a web terminal for secure payments - in fact it's probably still in use :-/ )
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:03 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|