Creating Home Directories in Trusted Extensions
In Trusted Extensions, users need access to their home directories at every label
at which the users work. To make every home directory available to
the user requires that you create a multilevel home directory server, run the automounter
on the server, and export the home directories. On the client side, you
can run scripts to find the home directory for every zone for
each user, or you can have the user log in to the home
directory server.
Create the Home Directory Server in Trusted Extensions
Before You Begin
You must be superuser, in the root role, or in the Primary Administrator
role.
- Install and configure the home directory server with Trusted Extensions software.
If you are cloning zones, make sure that you use a Solaris ZFS snapshot that has empty home directories.
Because users require a home directory at every label that they they can log in to, create every zone that a user can log in to. For example, if you use the default label_encodings file, you would create a zone for the PUBLIC label.
- If you are using UFS and not Solaris ZFS, enable the NFS server
to serve itself.
- In the global zone, modify the automount entry in the nsswitch.conf file.
Use the trusted editor to edit the /etc/nsswitch.conf file. For the procedure, see How to Edit Administrative Files in Trusted Extensions in Solaris Trusted Extensions Administrator’s Procedures.
automount: files
- In the global zone, run the automount command.
- For every labeled zone, follow the automount procedure in How to NFS Mount Files in a Labeled Zone in Solaris Trusted Extensions Administrator’s Procedures. Then, return to
this procedure.
- Verify that the home directories have been created.
- Log out of the home directory server.
- As a regular user, log in to the home directory server.
- In the login zone, open a terminal.
- In the terminal window, verify that the user's home directory exists.
- Create workspaces for every zone that the user can work in.
- In each zone, open a terminal window to verify that the user's home
directory exists.
- Log out of the home directory server.
Enable Users to Access Their Home Directories in Trusted Extensions
Users can initially log in to the home directory server to create
a home directory that can be shared with other systems. To create a
home directory at every label, each user must log in to the home
directory server at every label.
Alternatively, you, as administrator, can create a script to create a mount point
for home directories on each user's home system before the user first logs
in. The script creates mount points at every label at which the user
is permitted to work.
Before You Begin
The home directory server for your Trusted Extensions domain is configured.
- Choose whether to allow direct login to the server, or whether to run
a script.