Dragon Posted March 30, 2006 Report Share Posted March 30, 2006 ok, I got a file I need to get rid of, it is currently set at Read only and because of it I can't delete it, even in Root, so my question is how do I change the permission so I can delete it?Current setting are drwxr-xr-reverytime I try to remove it I get permission denied Read Only. It' s not a system file so I know I should be able to delete it. Quote Link to post Share on other sites
hitest Posted March 30, 2006 Report Share Posted March 30, 2006 ok, I got a file I need to get rid of, it is currently set at Read only and because of it I can't delete it, even in Root, so my question is how do I change the permission so I can delete it?Current setting are drwxr-xr-reverytime I try to remove it I get permission denied Read Only. It' s not a system file so I know I should be able to delete it.You could try logging on as root, then as root right click the file, choose properties, then click on permissions, change the permissions on the file so you can delete it. Quote Link to post Share on other sites
Dragon Posted March 30, 2006 Author Report Share Posted March 30, 2006 ok, I got a file I need to get rid of, it is currently set at Read only and because of it I can't delete it, even in Root, so my question is how do I change the permission so I can delete it?Current setting are drwxr-xr-reverytime I try to remove it I get permission denied Read Only. It' s not a system file so I know I should be able to delete it.You could try logging on as root, then as root right click the file, choose properties, then click on permissions, change the permissions on the file so you can delete it.tried that it didn't work, but I got rid of it, luckily my son wanted to play his games on Windows, so when I rebooted I was able to delete it go figure Quote Link to post Share on other sites
Carnevil Posted March 30, 2006 Report Share Posted March 30, 2006 If you ever have this problem again, as root type chmod u=rw filename, that'll give user read and write. You can also you chown, to change the owner of the file. Quote Link to post Share on other sites
hitest Posted March 30, 2006 Report Share Posted March 30, 2006 ok, I got a file I need to get rid of, it is currently set at Read only and because of it I can't delete it, even in Root, so my question is how do I change the permission so I can delete it?Current setting are drwxr-xr-reverytime I try to remove it I get permission denied Read Only. It' s not a system file so I know I should be able to delete it.You could try logging on as root, then as root right click the file, choose properties, then click on permissions, change the permissions on the file so you can delete it.tried that it didn't work, but I got rid of it, luckily my son wanted to play his games on Windows, so when I rebooted I was able to delete it go figureGood to hear you were able to get rid of it:-) Quote Link to post Share on other sites
jcl Posted March 30, 2006 Report Share Posted March 30, 2006 (edited) For future reference: deleting a file requires write permission for the directory containing the file. When you create or delete a file you're (logically) editing the directory. Edited March 30, 2006 by jcl Quote Link to post Share on other sites
Dragon Posted March 31, 2006 Author Report Share Posted March 31, 2006 For future reference: deleting a file requires write permission for the directory containing the file. When you create or delete a file you're (logically) editing the directory.write permission was given to the directory, it was trying to lock it as part of the operating system, which has to be loaded at boot time. Now when I shut down DSL, I get an error that xxxxx files media is missing. go figure. I'm looking further into this. Quote Link to post Share on other sites
jcl Posted April 1, 2006 Report Share Posted April 1, 2006 write permission was given to the directory, it was trying to lock it as part of the operating system, which has to be loaded at boot time.Curious. It sounds like the immutable attribute (see chattr(1)) was set on the file for some reason. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.