LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-28-2005, 01:38 PM   #1
Fillys6
Member
 
Registered: Mar 2005
Posts: 31

Rep: Reputation: 15
force user ID to IP address?


Is there a way to bind a user ID to a specififed IP address? We have wireless scanners with static IPs that we would like to do this on. For example, we have a scanner with an ip address of 10.0.0.1 and we only want user f01 to log into that scanner. The scanners use telnet to get into our server, so the user ID's are in the redhat server's Users and Groups file.

Is there something I can do with the user's .bash_profile to do this?


Thanks!
 
Old 12-28-2005, 01:45 PM   #2
UK MAdMaN
Member
 
Registered: Jul 2004
Location: Manchester, England
Distribution: Gentoo
Posts: 211

Rep: Reputation: 30
Having a fixed IP is dependant on the network card, not a specific user name.
 
Old 12-28-2005, 03:36 PM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Wireless and Telnet huh ? that's a pretty insecure combination for sure..

Have you considered ssh on the clients using certificates, and requireing a password to authenticate ?
Each scanner could have a different cert, and each user would know the pass for their cert, and would be unable to login from a different device..

your description of what you are trying to accomplish is a bit muddled so I may have missed the point..
 
Old 02-07-2006, 10:16 AM   #4
Fillys6
Member
 
Registered: Mar 2005
Posts: 31

Original Poster
Rep: Reputation: 15
farslayer,

Thanks for your reply. The security isnt a concern based on the information being sent wireless. Here is a little rundown of what I am trying to accomplish:

On our RHEL3 server we have several usernames in the form of F01xx and a password. We have forklifts in the warehouse that have wireless barcode scanners with static IP addresses. In order to user the scanner, the user must scan the user name and password barcode card that is physically fastened to the truck (the F01xx and its corresponding password). Then we use the username's .bash_profile to run the application at login. Now each truck has a unique username and password card which allows us to track changes back to a particular truck. However, a user can scan another truck's card which causes us to think changes are being made on another truck. So what I would like to do is only allow one particular IP address to login under the username that we want. Can this be done? I dont know much about the .bash_profile file, but I was thining I could do an if/then statement in it such as:

if ip address = 10.0.0.2
then run /xxx/xxx/xxx
else logoff

obviously that terminology is wrong but you get the idea.

Thanks.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Force sendmail to send mail on an ip address sdave1284 Linux - Software 8 11-23-2005 11:26 PM
I want to force user logouts qowpal Linux - Newbie 10 09-23-2004 02:52 PM
how to force ip address/host name pair sichen Linux - Networking 4 08-12-2004 10:50 AM
Force user to be in a group to use su? jrbush82 Linux - Security 2 06-03-2004 09:48 PM
Force user ust Linux - General 1 10-09-2003 11:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:45 AM.

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