Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-01-2010, 11:51 AM   #1
Registered: Nov 2004
Location: London, UK
Distribution: CentOS, RHEL, Debian, IPCop, PS2Linux
Posts: 95

Rep: Reputation: 23
Question libtrash on server, running in bg and location of Trash folder

Hi everyone

I've been looking into libtrash to give me the ability to recover files that users mistakenly delete from Samba/Netatalk/ProFTPD shares.
But I have some questions about getting a specific libtrash configuration.

We have a RAID6 shared files partition and all our users have full read and write access to /mnt/raid6/shared through Samba/Netatalk/ProFTPD

Reading through all the docs supplied with libtrash it seems to suggest that the trash folder can only be located in the user's home folder.

This has prompted a couple of questions:

1) Having gone through the docs, I can't find a place to specify the location of the trash folder.
I can specify the name of the trash folder, but it seems like it's automatically created under the user's home directory.
I'm looking to have the trash folder also stored on the RAID6 partition.
Because the boot/OS drive is a smaller 120GB drive, and the RAID6 is 4TB. So if someone deleted 3TB of files, the trash folder wouldn't be able to take them all as the trash folder's on the 120GB boot drive.

Is there a way to specify the absolute location of the trash folder?
I'd like to have a single trash folder for all users of the machine.

2) Since this is a server, most of the daemons will be running as user nobody/samba/whatever. Not an actual interactive user account with a home folder etc.
I have read the note about this in the docs and it seems that user nobody will need write access to the trash folder in order to put files in there.
However it will rarely be the case that it's an interactive user removing files from the terminal. I'm only looking for protection if any of the server daemons remove files.

Does libtrash run in the background or is it only active when an interactive user is logged in?
Since it seems libtrash is activated by a variable in /etc/profile

Is libtrash suitable for what I'm looking for?
Anyone got any alternate suggestions for what I'm trying to do?

EDIT: Is there something I could be doing on the filesystem level? The FS of the RAID 6 array is ext3 but can always change that if there's something better out there!

OS is CentOS 5.5 64bit

Cheers, B

Last edited by batfastad; 12-01-2010 at 12:35 PM.
Old 12-03-2010, 07:11 AM   #2
Registered: Nov 2004
Location: London, UK
Distribution: CentOS, RHEL, Debian, IPCop, PS2Linux
Posts: 95

Original Poster
Rep: Reputation: 23
Ok no luck
I was going to try having a symlink from ~/Trash pointing to the location where I want the trash folder to be kept

Turns out I can't get libtrash to build.
I needed python >2.5 and CentOS 5.5 has 2.4 for various OS compatibility reasons.
So I managed to install python26 alongside the existing python installation and modified the Makefile to point to the python26 command. Then there's a horrible bunch of errors after that.

For a couple of years now I have been using the Samba recycle vfd in case someone decides to delete something they later want. Just wish there was something out there for Netatalk and ProFTPD as well.

Anyone know of any other trash/recycle bin solutions out there?
I've seen solutions where people make an alias to the rm command, but I am assuming Netatalk/Samba/ProFTPD work on a different level to that when it comes to removing files.

Cheers, B


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
Sended mail go to trash folder of reciver using postfix in my smtp server marlonferri Linux - Server 3 11-28-2010 05:50 AM
How to open the trash folder and empty the trash in command line cmx08 Linux - Newbie 5 08-29-2008 09:15 AM
Create Trash folder for items deleted by users on server dmm1673 Linux - Newbie 2 02-07-2007 11:42 AM
WHat is the physical path or location of the trash folder? ImOk Linux - Software 3 10-23-2006 12:39 PM
gnome home folder and trash folder ambelos Linux - Software 2 02-24-2004 06:44 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:28 PM.

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