Friday, October 16, 2009

Cannot open or remove a file containing a running program

To resolve this login as root.

Run ps -ef grep ftpd to get a list of running FTP daemons.

Kill the the ftpd processes then the file can be deleted.

When the connection broke the thread was not killed so it thinks it is still copying data to the file and the file remains locked until the process is killed.

No comments:

Post a Comment