Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] random behavior of the rm command
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
e3k
Apprentice
Apprentice


Joined: 01 Oct 2007
Posts: 228
Location: Slovakia

PostPosted: Sun Aug 03, 2014 4:54 pm    Post subject: [solved] random behavior of the rm command Reply with quote

i have a strange behavior with the rm command when trying to delete thumbnails of tumbler in xfce with this command as root:
Code:
rm /home/someuser/.thumbnails/normal/*


but i get this message:
Code:
rm: cannot remove ‘/home/someuser/.thumbnails/normal/*’: No such file or directory


as someuser i could delete the files successfully. further i noticed that when i am in /home/someuser/.thumbnails/normal/ and issue the same command as root i successfully delete the files. i tried it again outside the directory and it worked also.
_________________
---__(o)__---
  | |


Last edited by e3k on Mon Aug 04, 2014 7:03 am; edited 1 time in total
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 8281
Location: Somewhere over Atlanta, Georgia

PostPosted: Sun Aug 03, 2014 5:07 pm    Post subject: Reply with quote

It depends on how the permissions are set and they are likely messed up. Can you post the output of
Code:
ls -l /home/someuser/.thumbnails/normal
or have you deleted everything all already?

- John
_________________
I can confirm that I have received between 0 and 999 National Security Letters.
Back to top
View user's profile Send private message
e3k
Apprentice
Apprentice


Joined: 01 Oct 2007
Posts: 228
Location: Slovakia

PostPosted: Sun Aug 03, 2014 5:21 pm    Post subject: Reply with quote

well i think it is the permissions of the folder: drwx------
but this does not explain the random behavior.
_________________
---__(o)__---
  | |
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 8281
Location: Somewhere over Atlanta, Georgia

PostPosted: Sun Aug 03, 2014 5:24 pm    Post subject: Reply with quote

Yes it does. The permissions on a few folders have gotten messed up (by means as yet undetermined) but you didn't know it. Next time you see the misbehaviour, look at the permissions.

- John
_________________
I can confirm that I have received between 0 and 999 National Security Letters.


Last edited by John R. Graham on Thu Aug 07, 2014 7:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
e3k
Apprentice
Apprentice


Joined: 01 Oct 2007
Posts: 228
Location: Slovakia

PostPosted: Mon Aug 04, 2014 7:02 am    Post subject: Reply with quote

thank you.
_________________
---__(o)__---
  | |
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum