Previous Topic: Create a Softlink to Make kadmin Visible

Next Topic: Assign Values to the SSH Attributes Using etautil

Modify the Environment File to Make kadmin Visible

If you have performed the steps in the procedure Verify that kadmin is Visible in the SSH Environment, but kadmin is not visible, modify the environment file to make kadmin visible.

To modify the environment file to make kadmin visible

  1. Edit the /etc/ssh/sshd_config file, add the PermitUserEnvironment option, and set it to yes.

    Setting this option to yes means that when the user logs in through SSH, SSH sets the variables specified in the environment file of the user.

    Note: For more information about sshd_config, see the sshd_config man page.

  2. Enter the following command:
    svcadm enable -r network/ssh
    

    The ssh service restarts.

  3. Create an environment file in the .ssh directory of the SSH user and put the directory containing the kadmin in the Path variable. For example, if you use the standard kadmin path add the following command:
    PATH=$PATH:/usr/sbin
    

    Note: For more information about the environment file, see the SSH man page.