Sometimes you know the filename of the file you want to close, and you need to find the connection associated with the file.
Open a terminal console, then log in as the root user.
At the console prompt, enter the following command to get a list of NCP connections for a given file:
ncpcon files list f=filename
Replace filename with the Linux path for the file, including the filename, such as /usr/novell/sys/text.txt.
ncpcon files list f=/usr/novell/sys/test.txt