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 > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-07-2004, 07:03 AM   #1
tuxombie
Member
 
Registered: Oct 2004
Location: Chennai, India
Distribution: Slackware 10, Ubuntu, Debian Sarge
Posts: 53

Rep: Reputation: 15
Cant remove write protected weird file


The following happened when I was ripping a cd.

I opened kaudiocreator as root and started ripping, intending to copy the ripped files back to my home directory later. Kde crashed (astounding in itself) and I am left with a strange 15 MB file 'Bach' which was the author name that I gave to the tracks. It says it is an octet stream. I cant delete the file. The message it gives is :

remove write protected weird file?

And on saying yes, it says that the operation is not permitted.

Any answers?

Using Slackware 10
(I have to find a way of granting permissions to open audio cds as user)

Last edited by tuxombie; 12-07-2004 at 07:07 AM.
 
Old 12-07-2004, 07:06 AM   #2
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Rep: Reputation: 30
Hey

Quick question: you are root when you try and delete the file, arent' you?

Check that the programme you used isn't still running in the background, and thus preventing you from deleting it:

$ps aux | grep -i audio

or something similar.
 
Old 12-07-2004, 07:07 AM   #3
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
What is the output of : (if Bach is in current directory, else give the full path to Bach)
ls -al Bach
 
Old 12-07-2004, 07:09 AM   #4
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 48
Do you have write access to the directory where this weird file resides? Directory rights are "stronger" than file rights.
 
Old 12-07-2004, 07:10 AM   #5
tuxombie
Member
 
Registered: Oct 2004
Location: Chennai, India
Distribution: Slackware 10, Ubuntu, Debian Sarge
Posts: 53

Original Poster
Rep: Reputation: 15
I was root while doing it. I tried deleting from the other OS (Ubuntu) and the same happens. So its not a question of running something else
 
Old 12-07-2004, 07:14 AM   #6
tuxombie
Member
 
Registered: Oct 2004
Location: Chennai, India
Distribution: Slackware 10, Ubuntu, Debian Sarge
Posts: 53

Original Poster
Rep: Reputation: 15
It appears I dont have permissions.

ls -al gives ?-------x

Alendog: What do you mean by write acess? The file is in a dir. called ogg. I can remove everything elde from there.
 
Old 12-07-2004, 07:30 AM   #7
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
maybe try " #chmod 777 /ogg/bach "
( after that , perm.'s should be rwxrwxrwx )

egag
 
Old 12-07-2004, 08:10 AM   #8
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 48
If you can remove everything else from there, it's not a permission problem (at least not with the directory). Directories have write access too, just as files (+w) and if the file in the directory has different permissions from the directory it resides in, the directory's permissions apply. That's what I meant by saying that directory's permissions are stronger. So to remove a file from the directory, you will have to have write access not only to the file you are trying to remove, but also to the directory where it is located in.

It's strange that you can't even remove it logged in as root, I'm out of imagination here...

Last edited by alienDog; 12-07-2004 at 08:16 AM.
 
Old 12-07-2004, 08:19 AM   #9
tuxombie
Member
 
Registered: Oct 2004
Location: Chennai, India
Distribution: Slackware 10, Ubuntu, Debian Sarge
Posts: 53

Original Poster
Rep: Reputation: 15
I still dont get why it cant list permissions for the file. It says ?-----x which means it can only execute; that too not owner or user, its for others.

The owner is 1543765935

Last edited by tuxombie; 12-07-2004 at 08:26 AM.
 
Old 12-07-2004, 08:24 AM   #10
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 48
Also the first questionmark in the permissionlist is strange... Who are the owner and group of the file?

--Edit--

Oh, the owner was already there. You could try (as root) taking the ownership of the file (chown root:root bach) and then giving 777 permissions to it.

Last edited by alienDog; 12-07-2004 at 08:29 AM.
 
Old 12-07-2004, 08:27 AM   #11
tuxombie
Member
 
Registered: Oct 2004
Location: Chennai, India
Distribution: Slackware 10, Ubuntu, Debian Sarge
Posts: 53

Original Poster
Rep: Reputation: 15
the group is 262164.
 
Old 12-07-2004, 08:42 AM   #12
tuxombie
Member
 
Registered: Oct 2004
Location: Chennai, India
Distribution: Slackware 10, Ubuntu, Debian Sarge
Posts: 53

Original Poster
Rep: Reputation: 15
I have found a forum with the same problem; have to read it completely but (I may be wrong here) they say its some kind of hack, which i my case is wuled out because its only got to do with the ripping, and I guess because of the crash the system hasnt been able to determine the file type or permissions or anything about it. For one thing I just cant imagine someone trying to hack my computer, and surely not with the innocuous music thingy.

The link is as follows

http://www.anetforums.com/posts.aspx?ThreadIndex=233

The solution proposed is to mount the file as a network file system, which I shall do in Ubuntu, and then delete it.
 
Old 12-07-2004, 08:43 AM   #13
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
try cdparanoia the next time you want to rip audio cds
 
Old 12-07-2004, 09:44 AM   #14
tuxombie
Member
 
Registered: Oct 2004
Location: Chennai, India
Distribution: Slackware 10, Ubuntu, Debian Sarge
Posts: 53

Original Poster
Rep: Reputation: 15
I cant figure out the mount thing now. Plus I just get the feeling it wont work. Is there a way to delete the inode or something ? I think it should because I once recovered a deleted file that way.


Edit:

I sorted it out. Fsck checked the file systems; and I got the following messages.

Inode 713471 (???) has a bad mode (01).

It fscked again and gave

Entry 'Bach' in /root/ogg (966045) has deleted/unused inode 713471. Clear<y>? yes

So it was a corrupt file of some sort, which did not show up because of it being ext3, which does not fsck every time an improper shut down occurs.

Anyway, thanks to you all

Last edited by tuxombie; 12-07-2004 at 10:09 AM.
 
  


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
unmount write protected disk pradi_net Linux - Hardware 1 05-18-2004 02:48 PM
NTFS Write-Protected? MindFlayer Mandriva 12 05-04-2004 05:36 PM
remove write-protected file randomtask Linux - Newbie 5 04-22-2004 03:06 AM
CDRW Drive mounts as write protected NewtoSlack Slackware 8 10-04-2003 01:33 AM
Remove write file access for single user? HighLife Linux - Newbie 1 08-08-2003 12:22 AM

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

All times are GMT -5. The time now is 06:50 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