Tried to delete file as root but it says I don't have permission to delete it!
Today I tried to connect with kppp and it said unable to load libpcap.so.0.
I tried to delete it but it tells me that I don't have permission to delete it,even if I am root! It seems as if it is supposed to be a link because in the rpm it is. In konqueror the file doesn't show but in Midnight Commander it shows but the entry is red. It says that it isn't a link. It seems as if it's corrupted, the date of the file is 1970! I did some investigating and in an attempt to fix it tried to uninstall the libcap package which includes the library. When I tried to install it, it refuses. So my question is, how do I delete this file? Maybe it would it invovle accessing the partitions raw contents? Please tell me all and any suggestions in as few posts as possible because I'm posting this message in windows because I can't connect(kppp doesn't work). Thanks to all in advance. |
i dunno if this will help, but could you not uninstall kppp and then reinstall it? I dont use dial up so im not sure...
|
I had to uninstall in order to uninstall libpcap.
|
and is it working now?
|
Well, it uninstalled everything except for the file I can't delete. Back to the drawing board. Oh yeah, and now it won't install.
|
Usually, when root does not have permission to remove a file, it is because the file belongs to another user account, and the permissions are set so only that user has write permission.
To get arround this, you can [as root] change the files permissions [In Konqueror, alt-click the file, then select properties, and click the permissions tab]. If the file does not appear in Konqueror, click the View Mwnu, and select the Show Hidden Files Option if it is not check-marked. This is not turned on by default. Any hidden files [files which have a . [dot] as the first character] will now be visable. |
If all else fails, boot in single user mode, that way you can change any files permission. This way you will most certainly be able to delete the file. But be careful in this mode as you have all rights (even more than root).
|
Konqueror can't see the file :-(
|
How do I boot into single user mode?
|
can u not run this command as root?
chown -R user:user /directory/filename replace user with your username and then obviously where the directory is and actual filename. |
as root have you tried:
rm -f file or chmod 777 file; rm -f file |
Well I can't try it at the moment but I think when I tried it it said the file doesn't exist(Although it most definitely does!)
|
I have tried to remove it as root, it says I don't have permission
|
marghorp,
How do I boot into single user mode, it seems as if that is the solution. |
rm -f file ?
or chmod 777 file; rm file ?? |
All times are GMT -5. The time now is 12:45 PM. |