Mandriva This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
03-11-2004, 01:10 AM
|
#1
|
Member
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686
Rep:
|
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.
|
|
|
03-11-2004, 02:39 AM
|
#2
|
Member
Registered: Dec 2003
Location: Johannesburg, South Africa
Posts: 846
Rep:
|
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...
|
|
|
03-11-2004, 02:45 AM
|
#3
|
Member
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686
Original Poster
Rep:
|
I had to uninstall in order to uninstall libpcap.
|
|
|
03-11-2004, 03:04 AM
|
#4
|
Member
Registered: Dec 2003
Location: Johannesburg, South Africa
Posts: 846
Rep:
|
and is it working now?
|
|
|
03-11-2004, 03:07 AM
|
#5
|
Member
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686
Original Poster
Rep:
|
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.
|
|
|
03-11-2004, 03:08 AM
|
#6
|
Senior Member
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Rep:
|
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.
|
|
|
03-11-2004, 03:11 AM
|
#7
|
Senior Member
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040
Rep:
|
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).
|
|
|
03-11-2004, 03:12 AM
|
#8
|
Member
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686
Original Poster
Rep:
|
Konqueror can't see the file :-(
|
|
|
03-11-2004, 03:14 AM
|
#9
|
Member
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686
Original Poster
Rep:
|
How do I boot into single user mode?
|
|
|
03-11-2004, 03:15 AM
|
#10
|
Member
Registered: Dec 2003
Location: Johannesburg, South Africa
Posts: 846
Rep:
|
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.
|
|
|
03-11-2004, 03:17 AM
|
#11
|
Senior Member
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,516
|
as root have you tried:
rm -f file
or chmod 777 file; rm -f file
|
|
|
03-11-2004, 03:18 AM
|
#12
|
Member
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686
Original Poster
Rep:
|
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!)
|
|
|
03-11-2004, 03:18 AM
|
#13
|
Member
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686
Original Poster
Rep:
|
I have tried to remove it as root, it says I don't have permission
|
|
|
03-11-2004, 03:23 AM
|
#14
|
Member
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686
Original Poster
Rep:
|
marghorp,
How do I boot into single user mode, it seems as if that is the solution.
|
|
|
03-11-2004, 03:35 AM
|
#15
|
Senior Member
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,516
|
rm -f file ?
or
chmod 777 file; rm file ??
|
|
|
All times are GMT -5. The time now is 05:15 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|