LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   user based ftp and sendmail restriction (https://www.linuxquestions.org/questions/linux-security-4/user-based-ftp-and-sendmail-restriction-477934/)

ahpin 08-27-2006 10:32 PM

user based ftp and sendmail restriction
 
Hi all,

Do anyone know how we can disable the sendmail and ftp client from linux box based on user account? For example. i want to disable user A only not able to use the entire services from all my linux box.

Thanks..

ramram29 08-28-2006 03:08 PM

I've never tried it but I think you can do it with /etc/hosts.allow and /etc/hosts.deny. For example:

/etc/hosts.allow:

ALL: ALL

/etc/hosts.deny:

smtp: user@example.com
vsftp: user@example.com

This will enable all users and disable user@example.com from access. Try it.


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