HP-UX Reference (11i v2 03/08) - 1 User Commands A-M (vol 1)
a
admin(1) admin(1)
If LC_CTYPE or LC_MESSAGES is not specified in the environment or is set to the empty string, the
value of LANG is used as a default for each unspecified or empty variable. If
LANG is not specified or is
set to the empty string, a default of
C (see lang(5)) is used instead of LANG. If any internationalization
variable contains an invalid setting,
admin behaves as if all internationalization variables are set to
C.
See environ(5).
International Code Set Support
Single-byte and multi-byte character code sets are supported.
DIAGNOSTICS
Use sccshelp (1) for explanations.
WARNINGS
SCCS files can be any length, but the number of lines in the text file itself cannot exceed 99 999 lines.
FILES
The last component of all SCCS file names must be of the form
s.filename. New SCCS files are given
mode 444 (see chmod(1)). Write permission in the pertinent directory is required to create a file. All
writing done by
admin is to a temporary x-file, called
x.filename, (see get(1)), created with mode 444 if
the
admin command is creating a new SCCS file, or with the same mode as the SCCS file if it exists.
After successful execution of admin, the SCCS file is removed (if it exists), and the x-file is renamed to
the name of the SCCS file. This ensures that changes are made to the SCCS file only if no errors
occurred.
It is recommended that directories containing SCCS files be mode 755 and that SCCS files themselves be
mode 444. The mode of any given directory allows only the owner to modify SCCS files contained in that
directory. The mode of the SCCS files prevents any modification at all except by SCCS commands.
If it should be necessary to patch an SCCS file for any reason, the mode can be changed to 644 by the
owner, thus allowing the use of
vi or any other suitable editor. Care must be taken! The edited file
should always be processed by an
admin -h to check for corruption followed by an admin -z
to gen-
erate a proper checksum. Another
admin -h is recommended to ensure the SCCS file is valid.
admin also makes use of a transient lock file called z.filename), which is used to prevent simultaneous
updates to the SCCS file by different users. See get(1) for further information.
SEE ALSO
delta(1), ed(1), get(1), sccshelp(1), prs(1), what(1), sccsfile(4), acl(5).
STANDARDS CONFORMANCE
admin: SVID2, SVID3, XPG2, XPG3, XPG4
HP-UX 11i Version 2: August 2003 − 4 − Hewlett-Packard Company Section 1−−21