fileuser

The fileuser script displays the usernames who have a named file open. Execute fileuser as follows:


    fileuser file...
This script is useful on systems where the fuser(1) does not support the -u parameter.

Example

sms> fileuser /bin/bash
/bin/bash       - UID root sms
sms>  

fileuser

The fileuser script calls fuser for each named file, this gives the process ids of any processes which have the file open. It then uses ps(1) for to determine the username.

Home