This file is not included in the standard release. You must add the file if users are to be allowed to use .forward files to forward mail to a program or to a file. You can create the file manually by using grep to identify all of the shells that are listed in your password file. You can then type the shells into the file. However, the following procedure, which employs a script that can be downloaded, is easier to use.
For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .
# ./gen-etc-shells.sh > /tmp/shells
This script uses the getent command to collect the names of shells that are included in the password file sources that are listed in the svc:/system/name-service/switch service.
With the editor of your choice, remove any shells that you are not including.
# mv /tmp/shells /etc/shells