COMPLY(8) COMMAND REFERENCE COMPLY(8) NAME comply - check files against specification SYNOPSIS comply [ -C ][ -D ][ -R ][ -S ][ -c comment_char ][ -d field_delim ][ -e ] [ -f ][ -g grpfile ][ -h ][ -l ][ -m ][ -p passwdfile ][ -r pseudoroot ][ -v ] specification_file ... DESCRIPTION The comply utility checks files in the file system against those listed in the specification file. One or more specification files can be placed on the command line. Briefly, each line of the specification file is a description about a certain file in the file system. The specification contains the information about the name of the file in the file system, who owns the file (owner), the group ownership, the file type, the major/minor device numbers if it is a device, the permission mode, the size in bytes, the hard link count, the RCS revision number, the checksum, and the symbolic link target if the file is a symbolic link are checked. See bom(5) for details of file format. Whenever a match does not occur an error is printed. If the -f option is used, comply attempts to fix the file system version of the file to match the specification. Users may use comply to check their file protection modes. Additionally, for system files, it is recommended that comply be run from the initialization process through the file /etc/rc (see init(8) and rc(8)), or periodically by cron(8). OPTIONS -C Check checksums on regular files and directories. -D Check major/minor numbers on devices. -R Check RCS identification numbers on regular files. -S Check sizes on regular files and directories. -c comment_char Change the comment character interpretation in the specification file to comment_char (default is % ). -d field_delim Change the field deliminter character interpretation in the specification file to field_delim (default is TAB ). -e Make comply perform an existence check of the files (it Printed 4/6/89 1
COMPLY(8) COMMAND REFERENCE COMPLY(8) does NOT check file type, owner, links, size, etc.). -f Make comply try to fix the file system according to the specification file (i.e. change owner) if it can. In addition, comply creates missing zero length files, missing directories, and symbolic links as necessary. -g grpfile Use grpfile as the group file for checking (default is /etc/group). -h Print only a help message. No other action will be taken no matter what other options are specified. -l Check that the file hard link count is `greater than or equal' to the one in the specification, rather than exactly `equal'. -m Check that the file mode is `greater' than the one in the specification, rather than exactly `equal'. -p passwdfile Use passwdfile as the password file for checking (default is /etc/passwd). -r pseudoroot Prepend pseudoroot to each file name being checked. (Default is null). -v (Verbose.) Print all actions taken by comply, including symbolic link and zero length file creation. In addition, print all comment lines from the beginning of the specification file upto the first non-comment line. RETURN VALUE [0] No errors occurred. [1] Errors occurred. [USAGE] Incorrect command line syntax. Execution terminated. [NP_ERR] An error occurred that was not a system error. Execution terminated. [P_ERR] A system error occurred. Execution terminated. See intro(2) for more information on system errors. CAVEATS The comply utility cannot fix hard link counts, RCS ids, and checksums, nor is it currently able to create devices. Printed 4/6/89 2
COMPLY(8) COMMAND REFERENCE COMPLY(8) SEE ALSO bom(5), cron(8), and stat(2). Printed 4/6/89 3
%%index%% na:288,94; sy:382,782; de:1164,1626; op:2790,955;4105,1782; rv:5887,580; ca:6467,264; se:7091,192; %%index%%000000000132