Re: I am root and can not delete a file?
From: D.C. van Moolenbroek (dcvmoole@cs.vu.nl)
Date: 03/14/03
- Next message: Robin Burns: "Re: What is LDP failed? (When I poweroff Red Hat Linux 7.0)"
- Previous message: Tom Jenkins: "Block CodeRed/Nimda with script and IPCHAINS?"
- In reply to: Sean W. Ellis: "Re: I am root and can not delete a file?"
- Next in thread: Juha Laiho: "Re: I am root and can not delete a file?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "D.C. van Moolenbroek" <dcvmoole@cs.vu.nl> Date: Fri, 14 Mar 2003 19:32:03 +0100
"Sean W. Ellis" wrote:
>
> The file might be in use. run fuser [filename] to see if it is open by
> something else and kill that PID.
>
AFAIK, that never happens on Linux. From man 2 unlink:
"If the name was the last link to a file but any processes still have the
file open the file will remain in existence until the last file descriptor
referring to it is closed."
and:
"EBUSY (not on Linux) - The file pathname cannot be unlinked because it is
being used by the system or another process and the implementation considers
this an error."
Besides that, EPERM and EBUSY are different errors, so they would also
generate different error messages...
Regards,
David
--
class sig{static void main(String[]s){for// D.C. van Moolenbroek
(int _=0;19>_;System.out.print((char)(52^// (CS student, VU, NL)
"Y`KbddaZ}`P#KJ#caBG".charAt(_++)-9)));}}// -Java sigs look bad-
- Next message: Robin Burns: "Re: What is LDP failed? (When I poweroff Red Hat Linux 7.0)"
- Previous message: Tom Jenkins: "Block CodeRed/Nimda with script and IPCHAINS?"
- In reply to: Sean W. Ellis: "Re: I am root and can not delete a file?"
- Next in thread: Juha Laiho: "Re: I am root and can not delete a file?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|