LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   What is the best way to limit users access to a server? (https://www.linuxquestions.org/questions/linux-server-73/what-is-the-best-way-to-limit-users-access-to-a-server-4175506608/)

massy 05-31-2014 10:20 AM

What is the best way to limit users access to a server?
 
I need to config my server so that users only be able to access some ports like as mysql or mail! what is the best way to do that?and what services are more appropriate to do it?

dijetlo 06-01-2014 01:48 AM

Quote:

I need to config my server so that users only be able to access some ports...
That's firewall
Quote:

like as mysql
That's a group control, not firewall, you have to open the mysql port on the firewall, but access to the engine is controlled by group (mysql group) rights
Quote:

or mail
See mysql

Try this, type "#groups" and figure out what every one of those groups is for. If you get stuck, post back, but that will give you a better grasp of how to control access to your server.

eklavya 06-02-2014 03:21 AM

You can define iptables rules for specific group or specific user.
Here is the hint, how can you do this.
http://www.linux-noob.com/forums/ind...ports-and-ips/


All times are GMT -5. The time now is 05:39 PM.