LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Assign group by IP (https://www.linuxquestions.org/questions/linux-general-1/assign-group-by-ip-43261/)

waifurchin 01-29-2003 03:36 PM

Assign group by IP
 
Redhat 7.2.

Is it possible to assign a user's group memebership based on the IP address the user obtains when he/she logs in?

For example, if "user1" logs in from machine 192.168.0.1 he becomes a part of group "abc", but if he logs in from 192.168.0.100 he is set to be part of group "def"?

Alternately, how can I block a login for an account based on the IP (so "user1" cannot log in at all from 192.168.0.100, but must use a different account)?

Waif

dorian33 01-29-2003 04:36 PM

man ssh (or man telnet) -> section FILES


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