Trusted Solaris Administrator's Procedures

To Set Up Startup Files for Users

Users can put a .copy_files or .link_files into their home directory MLD at the SLD that corresponds to the minimum sensitivity label or can modify the files in the minimum label SLD if the files are already there. This procedure is for the administrator role to automate the setup for a site.

  1. Assume the System Administrator role and go to an ADMIN_LOW workspace. If you are using a name service, do this on the name service master.

  2. Set appropriate defaults for users in shell initialization files.

    For example, set the MANPATH to enable the users to access all Trusted Solaris man pages, and the LPDEST and PRINTER environment variables to send print jobs to a labeled printer.

    In a startup .cshrc file for users:


    setenv MANPATH /usr/dt/man:/usr/openwin/man:/usr/man
    setenv PRINTER conf-label-gluten
    setenv LPDEST  conf-label-gluten

    In a startup .ksh file for users:


    export MANPATH /usr/dt/man:/usr/openwin/man:/usr/man
    export PRINTER conf-label-gluten
    export LPDEST  conf-label-gluten
  3. Go to your directory of startup files for users.

    For example,


    $ cd ~/startfiles_Cusers
    
  4. Copy the generic copies of startup files into a skeleton directory.

    The following example adds startup files for the mailer, the C shell, dtlogin, and dtterm.


    $ cp .cshrc .login .mailrc .Xdefaults .Xdefaults-hostname \ 
    /etc/skelC
    
  5. Open the Admin Editor from the System_Admin folder in the Application Manager and enter the pathname to the .copy_files file, /etc/skelX/.copy_files.

    In the example, the pathname is /etc/skelC/.copy_files.

  6. Type into .copy_files, one file per line, the files to be copied into the user's home directory at all SLDs. Save and quit the file.

    Use Table 3-4 for ideas. For example,


    # .copy_files for regular users
    # Copy these files to all home directory SLDs
    .mailrc
    .netscape
    .soffice
    :wq
  7. Repeat for .link_files -- create the file and type into it the files to be linked from the user's minimum-label home directory SLD to higher SLDs. Save and quit the file.

    Use Table 3-4 for ideas. In Step 4 the administrator placed site copies in the /etc/skelC directory. For example,


    # .link_files for regular users with C shells
    # Link these files to all home directory SLDs
    .cshrc
    .login
    .Xdefaults
    .Xdefaults-hostname
    :wq