Go to main content

Managing sendmail Services in Oracle® Solaris 11.3

Exit Print View

Updated: April 2020
 
 

How to Create and Populate the /etc/shells File

  1. Download the script.
  2. Become an administrator.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.

  3. Generate a list of shells.
    # ./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.

  4. Remove any shells from the list of shells in /tmp/shells that you are not including.
  5. Move the file to /etc/shells.
    # mv /tmp/shells /etc/shells