From Linux Shell Scripting Tutorial - A Beginner's handbook. The /etc/shells is a Linux / UNIX text file which contains the full pathnames of valid login shells. This file is used by various commands including chsh command.