xref: /titanic_41/usr/src/man/man1m/updatehome.1m (revision 048b02791572fec28722a0c06dec096503552ca7)
te
Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
updatehome 1M "20 Jul 2007" "SunOS 5.11" "System Administration Commands"
NAME
updatehome - update the home directory copy and link files for the current label
SYNOPSIS

/usr/bin/updatehome [-cirs]
DESCRIPTION

updatehome reads the user's minimum-label copy and link-control files (.copy_files and .link_files). These files contain a list of files to be copied and symbolically linked from the user's minimum-label home directory to the user's home directory at the current label.

The Solaris Trusted Extensions dtsession program performs an updatehome whenever a newly labeled workspace is created so that the user's favorite files are available for use. For example, the user probably wants a symbolic link to such files as .profile, .login, .cshrc, .exrc, .mailrc, and ~/bin. The updatehome command provides a convenient mechanism for accomplishing this symlink. The user can add files to those to be copied (.copy_files) and to those to be symbolically linked (.link_files).

OPTIONS

-c

Replace existing home-directory copies at the current label. The default is to skip over existing copies.

-i

Ignore errors encountered. The default aborts on error.

-r

Replace existing home-directory copies or symbolic links at the current label. This option implies options -c and -s. The default is to skip over existing copies or symbolic links.

-s

Replace existing home-directory symbolic links at the current label. The default is to skip over existing symbolic links.

EXIT STATUS

Upon success, updatehome returns 0. Upon failure, updatehome returns 1 and writes diagnostic messages to standard error.

EXAMPLES

Example 1 A Sample .copy_files File

The files that are listed in .copy_files can be modified at every user's label.

.cshrc 
.mailrc 
.mozilla/bookmarks.html

Example 2 A Sample .link_files File

The files that are listed in .link_files can be modified at the lowest label. The changes propagate to the other labels that are available to the user.

~/bin
.mozilla/preferences
.xrc
.rhosts

Example 3 Updating the Linked and Copied Files

The .copy_files and .link_files were updated by the user at the minimum label. At a higher label, the user refreshes the copies and the links. No privileges are required to run the command.

% updatehome -r
FILES

$HOME/.copy_files

List of files to be copied

$HOME/.link_files

List of files to be symbolically linked

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
Interface StabilityCommitted
SEE ALSO

attributes(5)

.copy_files and .link_files Files in Solaris Trusted Extensions Administrator's Procedures

NOTES

The functionality described on this manual page is available only if the system is configured with Trusted Extensions.