fuser(1M) DG/UX R4.11MU05 fuser(1M)
NAME
fuser - identify processes using a file or file structure
SYNOPSIS
/etc/fuser [ -kuF ] files [ - ] [[ -kuF ] files]
DESCRIPTION
Fuser lists the process ids of the processes using files. Fuser does
not identify processes on remote machines using files through NFS.
For block special devices, all processes using any file on that
device are listed. The process ids are followed by c or r if the
process is using the file as its current directory or its root
directory and a t if the process is currently executing the file.
If you use the -u option, the login name, in parentheses, also
follows the process id. In addition, if the -k option is specified,
the SIGKILL signal is sent to each process. Only a user with
appropriate privilege (See NOTES, below) can terminate another user's
process (see kill(2)). The -F option matches any file on the same
file system. Options may be re-specified between groups of files.
The new set of options replaces the old set; a single dash (-)
cancels any options currently in force.
The process ids are printed as a single line on the standard output,
separated by spaces and terminated with a single new line. All other
output is written on standard error.
EXAMPLES
/etc/fuser -ku /dev/dsk/test
If typed by a user with appropriate privilege (See NOTES,
below), terminates all processes that are preventing the file
system on the virtual disk named `test' from being unmounted
and lists the process IDs and login name of each process as it
is killed.
/etc/fuser -u /etc/passwd
Lists process IDs and login names of processes that have the
password file open.
/etc/fuser -ku /dev/dsk/test -u /etc/passwd
Performs both of the first two examples in a single command
line.
NOTES
On a generic DG/UX system, appropriate privilege is granted by having
an effective UID of 0 (root). See the appropriate_privilege(5) man
page for more information.
On a system with DG/UX information security, appropriate privilege is
granted by having one or more specific capabilities enabled in the
effective capability set of the user. See the cap_defaults(5) man
page for more information.
SEE ALSO
mount(1M), ps(1), dg_file_info(2), dg_process_info(2), kill(2),
signal(2), appropriate_privilege(5).
Licensed material--property of copyright holder(s)