/etc/shells contains a list of all legitimate user shells, by full path, one per line. If you install a shell from package or port, add an appropriate entry to /etc/shells. Various programs check /etc/shells to try to sort out legitimate requests from bogus ones — for example, ftpd(8) will not allow a connection from a user if his shell is not listed in this file.