Set the SSH or FTP login shell

You can use the --login-shell option to set the default login shell for the user.

About this task

By default, the --login-shell option, if specified, overrides any login-shell information provided by the authentication provider, except with Active Directory. If the --login-shell option is specified with Active Directory, it simply represents the default login shell if the Active Directory server does not provide login-shell information.

Note Image

The following examples refer to setting the login shell to /bin/bash. You can also set the shell to /bin/rbash.

Procedure

  1. Run the following command to set the login shell for all local users to /bin/bash:
    isi auth local modify System --login-shell /bin/bash	
  2. Run the following command to set the default login shell for all Active Directory users in your domain to /bin/bash:
    isi auth ads modify YOUR.DOMAIN.NAME.COM --login-shell /bin/bash