Trusted Solaris Administrator's Procedures

To Alias vi to adminvi

By default, all roles have the adminvi(1M) editor and the dtterm terminal assigned by default.

The default profile(4) file in the home directories for all roles has the following function to alias vi to adminvi:

vi() { adminvi $1 ; }

However, the alias does not by defaults since the .profile file is not sourced by default. For more information about startup files in the Trusted Solaris environment, see the discussion in Chapter 3, Managing User Accounts under "Managing Initialization Files".

  1. Assume the System Administrator role and go to an ADMIN_LOW workspace.

  2. Create an .Xdefaults file for each hostname the role uses.

    For example, when the role works on computers named tern and toucan, create a $HOME/.Xdefaults-toucan and a $HOME/.Xdefaults-tern.

  3. Add the following entry to the $HOME/.Xdefaults-hostname file in the SLD at each label at which the role works:


    Dtterm*LoginShell: true 
  4. Make sure that a copy of the file is in every SLD at which the role works.

    See "Using .copy_files and .link_files" for how to copy or link files into every SLD.