You are not logged in.

#1 2013-09-22 22:36:55

EvanPurkhiser
Member
From: San Francisco
Registered: 2010-08-17
Posts: 225
Website

[Solved] Can't delete file or move the file, have permissions

I'm banging my head against the wall wit this one.

I have a file ~/.config/chromium/Default/User StyleSheets/Custom.css

$ cd "~/.config/chromium/Default/User StyleSheets"
$ ls -l
total 0
-rw-r--r-- 1 evan users 0 Sep 22 18:27 Custom.css
$ rm -v Custom.css
removed 'Custom.css'
$ ls -l
total 0
-rw-r--r-- 1 evan users 0 Sep 22 18:27 Custom.css
$ cd ..
$ rm -rfv "User Stylehseets"
removed ‘User StyleSheets/Custom.css’
rm: cannot remove ‘User StyleSheets/’: Directory not empty
$ cd "User StyleSheets"
$ mv Custom.css testing.wtf
$ ls
Custom.css testing.wtf
$ rm -v *
removed ‘Custom.css’
removed ‘testing.wtf’
$ ls
Custom.css
$ cd ..
$ mv "User StyleSheets" testing
$ ls
User StyleSheets    testing
$ rm -rf *
removed ‘testing/Custom.css’
removed directory: ‘testing/’
removed ‘User StyleSheets/Custom.css’
removed directory: ‘User StyleSheets/’
$ ls
User StyleSheets

What is going on here? Why can't I get rid of this file!

Last edited by EvanPurkhiser (2013-09-22 23:45:38)

Offline

#2 2013-09-22 22:38:45

cris9288
Member
Registered: 2013-01-07
Posts: 348

Re: [Solved] Can't delete file or move the file, have permissions

is it marked as immutable (chattr)?

Offline

#3 2013-09-22 22:41:07

EvanPurkhiser
Member
From: San Francisco
Registered: 2010-08-17
Posts: 225
Website

Re: [Solved] Can't delete file or move the file, have permissions

$ lsattr 
-------------e-- ./Custom.css

It doesn't appear to be

Offline

#4 2013-09-22 23:17:05

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: [Solved] Can't delete file or move the file, have permissions

Are there any chromium processes running?  Maybe something is noticing the file being deleted, and an invisible hand is recreating it.  I would expect a different date on the file, but the listings you show could have all occurred within the same minute  (18:27).  If they were different I would be certain.  As it is, it is non-deterministic.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#5 2013-09-22 23:22:21

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Can't delete file or move the file, have permissions

Maybe you can use 'lsof' to see what process - if any - uses this file.

Offline

#6 2013-09-22 23:45:27

EvanPurkhiser
Member
From: San Francisco
Registered: 2010-08-17
Posts: 225
Website

Re: [Solved] Can't delete file or move the file, have permissions

ewaller wrote:

Are there any chromium processes running?  Maybe something is noticing the file being deleted, and an invisible hand is recreating it.  I would expect a different date on the file, but the listings you show could have all occurred within the same minute  (18:27).  If they were different I would be certain.  As it is, it is non-deterministic.

You're right. There was a chrome process open, and it was re-creating it.

Thanks. I feel rather dumb =P

Offline

Board footer

Powered by FluxBB