ncheck(8) CLIX ncheck(8)
NAME
ncheck, ffsncheck - Generates pathnames from i-numbers
SYNOPSIS
/etc/ncheck [-i i-numbers] [-a] [-s] [file-system]
/etc/ffsncheck [-i i-numbers] [-a] [-s] [file-system]
FLAGS
-i Limits the report to only those files whose i-numbers follow.
-a Allows displaying of the names . and .., which are ordinarily
suppressed.
-s Limits the report to special files and files with set-user-ID mode.
This flag may be used to detect violations of security policy.
The file system parameter must be specified by the file system's special
file.
DESCRIPTION
Issuing the ncheck or the ffsncheck command with no arguments generates a
list of pathnames and corresponding i-numbers for all files on a set of
default file systems (see /etc/checklist). Names of directory files are
followed by /...
The ncheck command audits an fs type file system as the default file
system. The ncheck command also acts as a front-end driver for other file
system types. If the file system is not the default type, ncheck executes
fstyp, forms a pathname from the output, appends the output to the front
of ncheck, and executes the audit command that was formed. For example,
if fstyp reports the file system to be of type FFS, ncheck will call
ffsncheck.
If the file system type is unknown, ncheck will assume type fs.
The report should be sorted so that it is more useful.
EXAMPLES
1. The following command gives the pathnames corresponding to inode
numbers 450 and 451 on the /usr file system:
ncheck -i 450 451 /dev/dsk/s0u0p7.3
2. The following command lists all pathnames for all inodes, including
2/94 - Intergraph Corporation 1
ncheck(8) CLIX ncheck(8)
directory files for the /dev/dsk/s0u0p7.4 file system:
ncheck -a /dev/dsk/s0u0p7.4
3. The following command lists all block special, character special, and
set-user-ID files in the files systems listed in /etc/checklist.
ncheck -s
FILES
/etc/checklist
Contains a default list of file systems on which ncheck can
operate.
NOTES
If the file system structure is not consistent, ?? denotes the parent of a
``parentless file''. A pathname beginning with ... denotes a loop.
The ffsncheck command cannot detect parentless files or loops.
DIAGNOSTICS
No file systems were given on the command line, and the /etc/checklist
file does not exist, or does not have read permission:
Can't open checklist file
The file system to be checked does not exist or will not allow opens for
reading:
ncheck: Cannot Open file system
The file system type was determined, but no corresponding ncheck command
exists:
ncheck: Cannot Exec command
EXIT VALUES
If unsuccessful, ncheck returns one of the following values:
2 could not open checklist file
1 other error
RELATED INFORMATION
2 Intergraph Corporation - 2/94
ncheck(8) CLIX ncheck(8)
Commands: fsck(8), ffsfsck(8), sort(1)
Files: ffsfs(4)
2/94 - Intergraph Corporation 3