shsel – runtime selection of unix shells
In an ordinary SSH login, the shell selection mechanism is boring. You automatically get a single shell, and the only way I know to change said shell requires writing to /etc/passwd. Using chsh isn't even a possibility unless you're already in an interactive shell, and sometimes I want to create accounts on my machines that simply don't have that level of access.
So I wrote shsel, a handy little tool which allows me to specify multiple shells a user can choose from at login time. It's simple, weighing in at 100 lines exactly, and allows only the execution of very specific commands read from a configuration file. It's nothing fancy, but I was unable to find any combination of existing tools that would achieve the desired result, so it's nice to have a new program to add to my bag of tricks.












