LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 03-11-2004, 01:10 AM   #1
beejayzed
Member
 
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686

Rep: Reputation: 30
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.
 
Old 03-11-2004, 02:39 AM   #2
equinox
Member
 
Registered: Dec 2003
Location: Johannesburg, South Africa
Posts: 846

Rep: Reputation: 30
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...
 
Old 03-11-2004, 02:45 AM   #3
beejayzed
Member
 
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686

Original Poster
Rep: Reputation: 30
I had to uninstall in order to uninstall libpcap.
 
Old 03-11-2004, 03:04 AM   #4
equinox
Member
 
Registered: Dec 2003
Location: Johannesburg, South Africa
Posts: 846

Rep: Reputation: 30
and is it working now?
 
Old 03-11-2004, 03:07 AM   #5
beejayzed
Member
 
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686

Original Poster
Rep: Reputation: 30
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.
 
Old 03-11-2004, 03:08 AM   #6
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
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.
 
Old 03-11-2004, 03:11 AM   #7
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
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).
 
Old 03-11-2004, 03:12 AM   #8
beejayzed
Member
 
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686

Original Poster
Rep: Reputation: 30
Konqueror can't see the file :-(
 
Old 03-11-2004, 03:14 AM   #9
beejayzed
Member
 
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686

Original Poster
Rep: Reputation: 30
How do I boot into single user mode?
 
Old 03-11-2004, 03:15 AM   #10
equinox
Member
 
Registered: Dec 2003
Location: Johannesburg, South Africa
Posts: 846

Rep: Reputation: 30
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.
 
Old 03-11-2004, 03:17 AM   #11
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
as root have you tried:
rm -f file

or chmod 777 file; rm -f file
 
Old 03-11-2004, 03:18 AM   #12
beejayzed
Member
 
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686

Original Poster
Rep: Reputation: 30
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!)
 
Old 03-11-2004, 03:18 AM   #13
beejayzed
Member
 
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686

Original Poster
Rep: Reputation: 30
I have tried to remove it as root, it says I don't have permission
 
Old 03-11-2004, 03:23 AM   #14
beejayzed
Member
 
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686

Original Poster
Rep: Reputation: 30
marghorp,
How do I boot into single user mode, it seems as if that is the solution.
 
Old 03-11-2004, 03:35 AM   #15
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
rm -f file ?
or

chmod 777 file; rm file ??
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Permission Denied when trying to delete /var robintw Linux - General 4 09-17-2005 02:00 PM
Root cant delete file WTF!!! xtypestereotype Linux - Software 7 06-27-2005 11:41 AM
Get permission to write/delete it-s Linux - Newbie 12 02-16-2005 04:30 AM
Strange problem: can not delete file as root ?? hendrixx Linux - General 29 11-11-2004 12:46 AM
Ownership/Permission and Delete Syntax MadDogE134 Linux - Newbie 8 06-09-2004 06:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 03:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration