Tried to delete file as root but it says I don't have permission to delete it!
MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.