ncheck(ADM)


ncheck -- generate names from inode numbers

Syntax

/etc/ncheck [ -asdt ] [ -i number ... ] [ filesystem ... ]

Description

ncheck generates a pathname and inode number list of all files in the specified filesystems.

If you do not specify a filesystem, ncheck examines each of the filesystems specified in /etc/checklist.

ncheck appends the two characters ``/.'' to directory names.

The following options are available:


-a
Allow printing of the names . and .. which are suppressed by default.

-d
modifies -s and -t flags to report directories as well as files that match.

-i number ...
Limit the report to only those files with the specified inode numbers.

-s
Limit the report to special files and files with set-user-ID (setuid) or set-group-ID (setgid) mode set. This can be used to detect violations of security policy.

-t
reports on files with the "sticky" mode set.

Examples

Limit arguments can be combined (acting as logical "OR"). For example, this command reports device files, files and directories, with setuid, setgid, or sticky modes, and inode number 45:

ncheck -dst -i 45

Diagnostics

If the filesystem structure is damaged, ``??'' denotes the ``parent'' of a parentless file, and a pathname beginning with ``...'' denotes a loop.

Limitations

No more than 20 filesystems may be checked.

See also ``Limitations'' under mount(ADM).

Files


/etc/checklist
default list of filesystems to check

/etc/fscmd.d/fstyp
directory containing programs for each filesystem type; ncheck invokes the appropriate binary

See also

checklist(F), fsck(ADM), fstyp(ADM), sort(C), chmod(C), chmod(S) ncheck_vxfs(ADM)

Standards conformance

ncheck is conformant with AT&T SVID Issue 2.

Notices

A version of ncheck that can handle files greater than 2GB is available in /u95/bin. See ncheck(1M) for more information.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 03 June 2005