Is it possible to create a bash script that Ubuntu Server will execute every time that a user logs in locally? Is it possible to set up a specific script for each user?
I explain. For the reasons that I explain on this
post, I need that users listed on the LDAP tree cannot log into the server machine (please read the post for more details).
Would it be possible to create a bash script for the users that I want to lock out of the server, so that this script would log them out? I mean, a login script that would contain "logout" as the first (and probably the only) order, so that the users from the LDAP tree would pass authentication but then be kicked out more or less immediately.
How can I do that?
Thanks, and regards,