USA Linux Users Group Forum Index
Log in Register FAQ Memberlist Search USA Linux Users Group Forum Index Album

[SOLVED] Cannot delete files from Wastebasket

 
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Window Managers
View previous topic :: View next topic  
Author Message
richard
Ultimate Member


Joined: 13 Apr 2024
Posts: 2730
Location: Kent, United Kingdom

PostPosted: Fri Apr 11, 2024 7:42 pm    Post subject: [SOLVED] Cannot delete files from Wastebasket Reply with quote

I have been doing some sorting out of files today and went to empty the Wastebasket only to find that 2 Folders and some of their contents were not deleted. When I tried to this from in the Wastebasket I keep getting a message saying I do not have permission to delete the files. Is there a way I can delete these files?

[UPDATE]
I have tried to use a live cd to see if i could find the files but I cannot see them anywhere.



_________________
Windows Vista / Ubuntu 8.10


Last edited by richard on Fri Apr 11, 2024 10:36 pm; edited 2 times in total
Back to top
View user's profile Send private message
lberg
Sr. Member


Joined: 28 Jul 2024
Posts: 1289

PostPosted: Fri Apr 11, 2024 8:51 pm    Post subject: Reply with quote

I'm assuming you can't remove them as a non-root user. Here's what I would do in a case like this:

Make a new folder on your desktop (of the user)
Move the folders/files in the trash out of the trash and into that folder (or ANYWHERE....it doesn't really matter where, the new folder is just for ease of the operation)
Get root permission (again, doesn't matter....CLI or GUI)
Delete the files/folders as root.....This is when having them contained in a folder helps.



_________________
2 Computers: Arch Linux, 64-bit
3 Computers: Arch Linux, 32-bit
Back to top
View user's profile Send private message
richard
Ultimate Member


Joined: 13 Apr 2024
Posts: 2730
Location: Kent, United Kingdom

PostPosted: Fri Apr 11, 2024 9:07 pm    Post subject: Reply with quote

I have just tried to move the files out of the wastebasket and it will not let me as it says i do not have permission to move the files Sad



_________________
Windows Vista / Ubuntu 8.10
Back to top
View user's profile Send private message
tlmiller
Ultimate Member


Joined: 01 May 2024
Posts: 2433
Location: MD, USA

PostPosted: Fri Apr 11, 2024 10:11 pm    Post subject: Reply with quote

From what I understand, the wastebasket is supposed to simply link to ~/.Trash

Can you verify if this folder exists, and if so, can you become root, cd to that directory and 'rm -f <filenames>'?



_________________
Debian Squeeze, Arch, Kubuntu mostly. Some Mandriva. Some Windows.
Desktops: shadowdragon, medusa
Laptops: bluedrake, banelord, sandwyrm, aardvark.
Back to top
View user's profile Send private message AIM Address MSN Messenger
richard
Ultimate Member


Joined: 13 Apr 2024
Posts: 2730
Location: Kent, United Kingdom

PostPosted: Fri Apr 11, 2024 10:29 pm    Post subject: Reply with quote

Well after a bit of digging around I found that the correct location for the trash folder contents is

Code:
~./local/share/Trash/files


The reason that they couldn't be deleted was that the files in question were read only. I was able to change the permissions and delete the files finally.



_________________
Windows Vista / Ubuntu 8.10
Back to top
View user's profile Send private message
inactive
Sr. Member


Joined: 29 Aug 2024
Posts: 1207

PostPosted: Sat Apr 12, 2024 1:51 pm    Post subject: Reply with quote

Right.

What I do is pull up a console, login to it as su, then type in "nautilus" or "konqueror", then change attribs/permissions and/or delete the files from there.



_________________
Mandriva 2024.1 PWP
Mandriva Cooker
ArtistX live
Back to top
View user's profile Send private message
richard
Ultimate Member


Joined: 13 Apr 2024
Posts: 2730
Location: Kent, United Kingdom

PostPosted: Sat Apr 12, 2024 3:24 pm    Post subject: Reply with quote

DedannaRocks! wrote:
Right.

What I do is pull up a console, login to it as su, then type in "nautilus" or "konqueror", then change attribs/permissions and/or delete the files from there.


The problem was I had to find the files in the first place.



_________________
Windows Vista / Ubuntu 8.10
Back to top
View user's profile Send private message
jester
Sr. Member


Joined: 19 Apr 2024
Posts: 1166

PostPosted: Mon May 05, 2024 4:32 pm    Post subject: Reply with quote

I think you may also have some 'leftovers' in .local/share/Trash/info which you'd also need to do something like:
Code:
cd ~/.local/share/Trash/info
sudo rm -r filename.trashinfo

This scenario is going to happen when you compile code in your /home directory somewhere, during which you need to su/sudo to root/privilege.

Once you're done and dusted with that experimentation (or the alpha/beta/non-'packaged' code you are following), you go ahead (under gnome - I can't speak for kde or others) and point-click delete under nautilus.

The file/directory is now in the Trash on the Desktop but can never be removed as a user.

Definitely a bug/shortcoming in nautilus/gnome (despite my advocacy...)

You avoid it by deleting this type of file/directory from the terminal as su/sudo ...



_________________
Arch64 :: Funtoo64 :: FreeBSD-8.0 :: OSX-10.4.11 (PPC)
Testing: Fedora12_x86-64 :: Ubuntu-10.04-LTS_x86-64
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
inactive
Sr. Member


Joined: 29 Aug 2024
Posts: 1207

PostPosted: Tue Jun 03, 2024 6:22 am    Post subject: Reply with quote

richard wrote:
DedannaRocks! wrote:
Right.

What I do is pull up a console, login to it as su, then type in "nautilus" or "konqueror", then change attribs/permissions and/or delete the files from there.


The problem was I had to find the files in the first place.

Turn on "View hidden files and folders" in Nautilus/Konqueror?

That didn't work?



_________________
Mandriva 2024.1 PWP
Mandriva Cooker
ArtistX live
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Window Managers 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
All content © 2024-2009 - Usa Linux Users Group
This forum is powered by phpBB. © 2024-2009 phpBB Group
Theme created by phpBBStyles.com and modified by Crouse