Change login process


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Change login process
# 1  
Old 07-23-2017
Change login process

Hello everybody !

At the beginning - I hope everything will be understandable as I know that my english skills are not as good as I would like.

I use Manjaro Linux for one year, previously used Ubuntu for 6 years. Today I got an idea to create small USB electronic device but I don't know how to manage it under Linux. What this device should do ? This will be small box with USB interface, inside will be electronics to detect RFID card. If user will approach his RFID card to device - Linux should login that user to system. I suppose that I should write small linux kernel driver to USB that will be run in background and each correct try will log user. Of course, when user has no card it is still possible to login by login and password. My biggest problem is: how to change behaviour of standard Linux login window? What should I google or where find information? I'm not afraid with changing kernel, writing new modules, I would like to learn Linux at all Smilie

Thanks in advance for ideas !
Greetings
Mateusz
# 2  
Old 07-23-2017
You will have to learn a lot about the USB hid driver. It is possible to have the USB itself download the authentication program and run it. You will also have have some hardware that reads the RFID card, and you need the ability to create the card in the first place. BTW this kind of setup probably will not pass a security audit, because all the bad guy needs to break in is the card.

go here: USB Human Interface Device (HID) Configuration
# 3  
Old 07-24-2017
Thank you very much ! Yes, I know that it is not the best security but it is not solution for company but just me - for my own home laptop and for learning more linux kernel and writing drivers. I know how to create electronics device for RFID, I don't know at all how to manage it under Linux, but with resources from you and google I hope that I can do it and learn a lot.

Thanks ! Smilie
# 4  
Old 07-24-2017
Thanks ! I know that this is not the most secure solution but this device will not be applied in company but only in my home laptop. The main goal is to improve my skills and learn more Linux kernel and programming. I think that is good way to learn. With the resources you sent and google I hope to learn a lot. Thanks once again !
# 5  
Old 07-25-2017
Quote:
how to change behaviour of standard Linux login window?
I am not really sure what you mean by that: Linux has no "login window".

Linux (like UNIXes, to which it is quite similar) has a "login" process. Whenever a terminal becomes free, this login process will start a session there and present a (text-based) login/password prompt.

What you perhaps mean by "login window" is the following: many graphical environments (GNOME, KDE, ....) don't deem it reasonable that the user uses the described login process and then start whatever graphical environment he wants. They basically intercept the login process and replace it with their own graphical version of it. Search for "gdm" (graphical display manager) for a detailed descrition of how this works.

This doesn't mean you have to use it, though. you can still trigger the native login process and use it to log in a user at the system. You will probably make use of "udev"-rules: "udev" is a kernel driver that constantly scans the system for changes in hardware. If you, for instance, put in a CD into the CD-ROM-drive and you get a nice symbol on your desktop, this is (ultimately) udev at work. udev works from a rule-set which basically states "if this and this happens execute this list of actions".

I hope this helps.

bakunin
# 6  
Old 07-26-2017
Yes, I meant gdm but I didn't know the name of that. The clue is to see that gdb and after use card skip login process. It can be used to 2-step user verification (eg. card + simple pin later) but this in the future.

So as I understand, the way is to create usb device driver that will send information to my laptop that the card has been near to RFID reader and after that some rule in udev will process my login process ?

Thanks ! Smilie
# 7  
Old 07-26-2017
Quote:
Originally Posted by halfboy
So as I understand, the way is to create usb device driver that will send information to my laptop that the card has been near to RFID reader and after that some rule in udev will process my login process ?
Yes, this should - by and large - be the way.

I hope this helps.

bakunin
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Change Password on First Login

Hi there, Is there a way to ask the solaris user to change passwordo n the first login. I am looking at how to do this for every single new user. (5 Replies)
Discussion started by: alvinoo
5 Replies

2. Shell Programming and Scripting

change login

Hi, I have a script called from php, which executes the following code: basename $arxivo .doc > nombre nom=`cat nombre` antiword -t $arxivo > $nom.txt rm nombre The problem is that I do not antiword conversion. I guess the problem must be that the user does not have permissions... (2 Replies)
Discussion started by: uri_crack
2 Replies

3. Shell Programming and Scripting

Change Last Login within /etc/shadow

Was wondering if any had a script to change the last login field within the /etc/shadow? Need to it run against machines to "reset" the last login so local accounts will not expire if account isn't access within the mandatory setting we are force to implement. Thanks!!!! (5 Replies)
Discussion started by: Luv_STL
5 Replies

4. Post Here to Contact Site Administrators and Moderators

change of login id..

Hi, Can I change my login id having my current account alive? I found one thread related to this which shows that it is possible. I also agree that this is not done in normal terms. Still, can I request for it? I really dont want to lose my current account and my post count. would... (1 Reply)
Discussion started by: clx
1 Replies

5. Post Here to Contact Site Administrators and Moderators

How can i change my login ID?

Hello, How can i change my login ID? My login ID is younus_syed. Thanks & Regards Younus Syed (10 Replies)
Discussion started by: younus_syed
10 Replies

6. UNIX for Dummies Questions & Answers

I want to change login failure message, "login incorrect"

I want to change login failure message, "login incorrect" deny user login for user id tom sudo passwd -l tom type username and type password on login prompt and then it will display login failure message "login incorrect" console ############ login: tom password: login incorrect... (2 Replies)
Discussion started by: lifegeek
2 Replies

7. AIX

Change users login name

Hi, I need to change some users login name in AIX. With solaris i donīt had problems, i have used "usermod". But in AIX the usermod command donīt have the same behavior. Can someone give me a tip on how to perform these changes? Thanks in advance. (9 Replies)
Discussion started by: spacewalker
9 Replies

8. UNIX for Dummies Questions & Answers

Login screen change

If I want to change a Solaris 8 login screen to add a Company name what do I need to do ? Current login prompt SunOS 5.8 login: ... (2 Replies)
Discussion started by: miredale
2 Replies

9. UNIX for Dummies Questions & Answers

Password change at login????

I want Red Hat Linux 7.2 prompt for new password at next login time. How can I do this????? passwd -f don't work for linux...... (4 Replies)
Discussion started by: rrivas
4 Replies

10. UNIX for Dummies Questions & Answers

change login dir

Ok when I log in to my terminal I land in a dir. How can I change the dir that I start from when I login? Thanks for the help, sure it is a no brainer for you guys cd (5 Replies)
Discussion started by: lorcet222
5 Replies
Login or Register to Ask a Question