Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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..
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.