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....
|
Quote:
See this thread. |
Quote:
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. |
"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. |
Quote:
|
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 |
Quote:
|
All times are GMT -5. The time now is 12:04 PM. |