LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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
 
LinkBack 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: 575

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: 21,610
Blog Entries: 47

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 11:19 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration