LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-27-2003, 03:48 PM   #1
waifurchin
LQ Newbie
 
Registered: Jan 2003
Posts: 3

Rep: Reputation: 0
Restrict access by IP


Is it possible to restrict a user's login to a certain group based on the IP of the connection?

For example, if user "bob" logs in via ssh from a machine with an IP from 192.168.0.1 - 192.168.0.100 he is part of group "home" with access to the full system, but if he logs in through any other 192.168.0/24 IP he is restricted to the group "vpn" which has much more limited access.

How would I go about doing this (or is there a better way to manage this)?

Waif
 
Old 01-27-2003, 04:28 PM   #2
waifurchin
LQ Newbie
 
Registered: Jan 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Additional Info:

Redhat 7.2 - fully patched using the Redhat up2date utility.

Presently there is no secondary authentication server (TACACS+, Radius, etc.).
 
Old 02-01-2003, 05:48 AM   #3
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
my idea is to use the shell starting scripts in correct way (f.ex. for bash I mean /etc/profile & /etc/bashrc)
you can can do there everything you want (ip detecting, permission setting, logout, etc)
 
Old 02-02-2003, 07:54 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Hmm. Maybe PAM, like http://www.kernel.org/pub/linux/libs...m-6.html#ss6.8
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restrict X server access using /etc/security/access.conf anand_kt Linux - General 0 04-22-2005 08:40 AM
Restrict Network Access alxdotnet Linux - Software 3 04-10-2004 10:05 PM
Restrict access to filesystem? sb73542 Linux - Security 2 07-30-2003 04:47 PM
how to restrict access to one application only? randomx Linux - General 1 05-29-2003 02:32 PM
Restrict directory access bdu Linux - Security 1 02-07-2002 12:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration