It Seemed Like a Good Idea at the Time Coding, Mostly

15Dec/090

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.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
Tagged as: , , Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.