[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Unremovable File



Thanks for the suggestion. Gave chattr a try but still unable to delete the file. Is there any other possible way to delete a file when the permissions have ben scrambled?

Thanks.

Thomas Molina wrote:

On Sun, 1 Dec 2002, LaJchon McRight wrote:



I am trying to reinstall kernel-pcmcia-cs. I was able to remove the rpm package but when I reinstall it I am unable to replace /sbin/cardctl. I check the permissions and the user and group permissions aren't root but a bunch of numbers.

My question is how do I remove a file that does not have root permissions. I've tried su with not success.



Sounds like your file permissions got scrambled and the file may have the immutable bit set. As root do the following to clear the file and make it deletable:


chattr -i <filename>

man chattr for a discussion of file attributes.











[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]