LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-12-2010, 11:58 PM   #1
ShelterWolf
LQ Newbie
 
Registered: Mar 2010
Location: Mountain View, CA
Distribution: Xandros 4.2 Home Edition Premium
Posts: 27

Rep: Reputation: 0
Question How to remove .mozilla folder from trash can? OSS 11.3


I have an old hard drive w/XandrOS that I decided to make external storage. I didn't bother wiping it. I figured I could just replace files on it like .mozilla folder.

I currently have OSS 11.3 where I chose to copy and paste .mozilla from OSS to external HD. I was denied access to copy over certain files.

Then I made the bonehead maneuver of trashing .mozilla from the external HD. Now, my trash can says that my access is denied to "cookperm.txt" and other files. I attempted to restore it, but it can't because the new .mozilla file is the external HD.

Wow, did I corner myself. I could really use some help. Just want to eliminate that old .mozilla folder from the trash. Please tell me what voodoo ritual I must perform.

Thanks in advance!
 
Old 12-13-2010, 01:33 AM   #2
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,653

Rep: Reputation: Disabled
Become the superuser / admin / root. That should do the trick.

Either enter from a terminal / console
Code:
su <enter>
{your admin-password here} <enter>
or do a graphical login as root.

Please note: In both cases any restraints are gone, you are total master of your actions and thereby of the system. That means you can shoot down your entire system with the wrong actions. Please think twice before deleting anything.

If you don't need anything on your external drive just create a new file system on it (i.e. format it), then you start from a clean slate.
 
Old 12-13-2010, 04:32 PM   #3
ShelterWolf
LQ Newbie
 
Registered: Mar 2010
Location: Mountain View, CA
Distribution: Xandros 4.2 Home Edition Premium
Posts: 27

Original Poster
Rep: Reputation: 0
Thanks, JZL, but I have one more stupid question: Where I can I find the trashcan for other user accounts besides SU? I'm not sure where it is. Thanks in advance!
 
Old 12-13-2010, 06:15 PM   #4
tailinlinux
Member
 
Registered: Oct 2010
Location: Paudpod, Botolan, Zambales, Philippines
Distribution: Mandriva, Ubuntu, Mint, Open Suse, Meego
Posts: 386
Blog Entries: 3

Rep: Reputation: 25
Quote:
Originally Posted by ShelterWolf View Post
Thanks, JZL, but I have one more stupid question: Where I can I find the trashcan for other user accounts besides SU? I'm not sure where it is. Thanks in advance!

go to panel>
right click>
select add to panel>
look for trash>
then add.
 
0 members found this post helpful.
Old 12-14-2010, 01:11 AM   #5
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,653

Rep: Reputation: Disabled
In case you were looking for the trash folders you'll find them at /home/<user-name>/.trash -- please note the dot in front of trash. It means the folder is invisible. In dolphin you can set the view to show invisible files...
 
Old 12-15-2010, 04:04 PM   #6
ShelterWolf
LQ Newbie
 
Registered: Mar 2010
Location: Mountain View, CA
Distribution: Xandros 4.2 Home Edition Premium
Posts: 27

Original Poster
Rep: Reputation: 0
Question

Quote:
Originally Posted by JZL240I-U View Post
In case you were looking for the trash folders you'll find them at /home/<user-name>/.trash -- please note the dot in front of trash. It means the folder is invisible. In dolphin you can set the view to show invisible files...
Thanks for your help, JZL, but I am still a bonehead.

I can only find "home/.Trash-0" which belongs to SU. I can't find .trash for other users. Is there another folder name I can search for? In OSS 11.3, it may be cryptic.

Thanks in advance!
 
Old 12-16-2010, 01:19 AM   #7
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,653

Rep: Reputation: Disabled
Quote:
Originally Posted by ShelterWolf View Post
T...I can only find "home/.Trash-0" which belongs to SU. I can't find .trash for other users...
Please note that I wrote "/home/<user-name>/.trash".

Lets start at the beginning. I assume you use openSuSE 11.3 (since this is the distribution of linux with currently this version number).

When you installed you gave the password for the administrator (called "root" here -- without the "") and for at least one normal user. This user's name is used to automatically create a directory with this name in /home thus /home/<user-name>. Please exchange the placeholder <user-name> with the actual name and search there for .trash.

root has his .trash in /root and not below /home.

"su" is a program, short for set user. It lets you assume root's powers (or anybody else's if you know their password). Did you create a user "SU"?
 
Old 12-16-2010, 01:18 PM   #8
Peverel
Member
 
Registered: May 2009
Location: Chelmsford, England
Distribution: OpenSuse 11.3, 11.4 and 12.2
Posts: 97

Rep: Reputation: 21
In OpenSuse 11.3, the location of the user trashcan is

~/.local/share/Trash

Note the dot before local and the capital T in Trash.

To get to it, log in as your normal user, click on the Dolphin icon to open your home folder, select "view" then "show hidden files". Now click on ".local" then "share". Now right click on "Trash" and select "Open with" then "super user mode". You will need to give the root password. Trash will open in a separate window. Now you should be able to move .mozilla by drag and drop. If you need to change permissions, you can do this by right click and select "properties". In the box that opens, click on permissions. You will see user, group and others: as you are now temporarily root, you can change permissions for any of these.
 
Old 12-17-2010, 12:22 AM   #9
ShelterWolf
LQ Newbie
 
Registered: Mar 2010
Location: Mountain View, CA
Distribution: Xandros 4.2 Home Edition Premium
Posts: 27

Original Poster
Rep: Reputation: 0
Question

Quote:
Originally Posted by Peverel View Post
In OpenSuse 11.3, the location of the user trashcan is

~/.local/share/Trash

Note the dot before local and the capital T in Trash.

To get to it, log in as your normal user, click on the Dolphin icon to open your home folder, select "view" then "show hidden files". Now click on ".local" then "share". Now right click on "Trash" and select "Open with" then "super user mode". You will need to give the root password. Trash will open in a separate window. Now you should be able to move .mozilla by drag and drop. If you need to change permissions, you can do this by right click and select "properties". In the box that opens, click on permissions. You will see user, group and others: as you are now temporarily root, you can change permissions for any of these.
Hey thanks, Pev, but now I'm seeing a lot more info like I'm looking in the guts of the trash can. There's a files folder containing .mozilla folder and an info folder containing
.mozilla.trashinfo document which reads:

Quote:
[Trash Info]
Path=/home/randolph/.mozilla
DeletionDate=2010-11-04T19:48:43
Is it safe to remove both .mozilla and .mozilla.trashinfo? This is from the external HD, so I'm pretty sure I don't need them. I don't want to make OSS retarded because I've done it to Xandros. Thanks in advance!
 
Old 12-17-2010, 01:03 AM   #10
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,653

Rep: Reputation: Disabled
Quote:
Originally Posted by Peverel View Post
In OpenSuse 11.3, the location of the user trashcan is

~/.local/share/Trash

Note the dot before local and the capital T in Trash.

....
Ahh, good to know. Shows that one shouldn't operate on the basis of assumptions . Since I don't use "Trash" (what I delete I do delete -- after suitable deliberation). Thus I assumed "trash" to be located in ~.

@ShelterWolf My apologies and just in case you didn't realize it by yourself: "/home/<user-name>/" is equivalent to "~".

Last edited by JZL240I-U; 12-17-2010 at 01:04 AM.
 
Old 12-17-2010, 04:50 AM   #11
Peverel
Member
 
Registered: May 2009
Location: Chelmsford, England
Distribution: OpenSuse 11.3, 11.4 and 12.2
Posts: 97

Rep: Reputation: 21
ShelterWolf,
The folder .mozilla contains the permanent data for any of the Mozilla suite, Firefox, Seamonkey, etc., such as bookmarks, addons and so on. It is always looked for in your home folder, wherever that is. If it is not there, the application creates it. If you want the old data, then you can copy Trash/.mozilla/firefox to the new version of .mozilla, overwriting /.mozilla/firefox. If you don't want it, then I guess you can delete both the files you mention by any way you choose.

The reason that emptying the trashcan did not work is that that some of the files were owned by root or a previous owner (probably yourself under a different name); "properties" of a file or folder will tell you both owner and permissions, which can only be changed if you are either the owner or superuser. If you change the permissions on these files for "users" (perhaps also "others") to "can read and write" then the trashcan can be emptied in the normal way.
 
  


Reply

Tags
mozilla, opensuse11, trashcan


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
where should I find the <trash> folder? maiden2 Ubuntu 1 09-24-2008 05:21 AM
How to open the trash folder and empty the trash in command line cmx08 Linux - Newbie 5 08-29-2008 09:15 AM
Remove trash icon from desktop or change trash iscon cad Linux - General 7 02-26-2007 11:50 PM
Trashing the Trash Folder? Xios Linux - General 1 02-10-2005 11:16 PM
gnome home folder and trash folder ambelos Linux - Software 2 02-24-2004 06:44 AM


All times are GMT -5. The time now is 02:31 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration