chatr_ia.1 (2010 09)

c
chatr_ia(1)
Integrity Systems Only
chatr_ia(1)
chatr +es executable_stack Action
enable 1 program runs normally
disable or 1 program runs normally
chatr is not run
enable 0 program runs normally
disable or 0 program is killed
chatr is not run
enable 2 program runs normally
disable or 2 program runs normally
chatr is not run with warning displayed
RETURN VALUE
chatr returns zero on success. If the command line contents is syntactically incorrect, or one or more of
the specified files cannot be acted upon,
chatr returns information about the files whose attributes
could not be modified. If no files are specified,
chatr returns decimal 255.
Illegal options
If you use an illegal option,
chatr
returns the number of non-option words present after the first illegal
option. The following example returns 4:
chatr +b enable +xyz enable +mno enable +pqr enable file
Invalid arguments
If you use an invalid argument with a valid option and you do not specify a file name,
chatr returns 0,
as in this example:
chatr +b <no argument>
If you specify a file name (regardless of whether or not the file exists),
chatr
returns the number of files
specified. The following example returns 3:
chatr <no argument> file1 file2 file3
Invalid les
If the command cannot act on any of the files given, it returns the total number of files specified (if some
option is specified). Otherwise it returns the number of files upon which it could not act. If
a2 does not
have read/write permission, the first of the following examples returns 4 and the second returns 1:
chatr +b enable a1 a2 a3 a4
chatr a1 a2 a3 a4
EXTERNAL INFLUENCES
Environment Variables
The following internationalization variables affect the execution of
chatr:
LANG Determines the locale category for native language, local customs and coded character
set in the absence of LC_ALL and other LC_* environment variables. If LANG is
not specified or is set to the empty string, a default of C (see lang(5)) is used instead
of LANG.
LC_ALL Determines the values for all locale categories and has precedence over LANG and
other LC_* environment variables.
LC_CTYPE Determines the locale category for character handling functions.
LC_MESSAGES Determines the locale that should be used to affect the format and contents of diagnos-
tic messages written to standard error.
LC_NUMERIC Determines the locale category for numeric formatting.
NLSPATH Determines the location of message catalogues for the processing of LC_MESSAGES.
If any internationalization variable contains an invalid setting,
chatr behaves as if all internationaliza-
tion variables are set to C. See environ (5).
In addition, the following environment variable affects
chatr:
TMPDIR Specifies a directory for temporary files (see tmpnam (3S)).
HP-UX 11i Version 3: September 2010 5 Hewlett-Packard Company 5