carast
Posts: 2
Joined: Tue Feb 21, 2017 11:31 am

External HDD trash bin

Tue Feb 21, 2017 11:54 am

Hi people.
I'm a newcomer to linux and raspberry. I've managed to setup a samba file share over my wifi network.

My setup:
Raspberry pi b+ running on Raspbian Jessie Lite which is running my samba file share server.
I have two external HDDs connected to the Pi, one for storage (which is available to all on my network, type NTFS) and one for backing up the storage one.

My problem:
When someone deletes a file, folder.. on my storage HDD it is gone... there is no Recycle bin (Trash bin) on external HDD for me to recover the file.

What I wan't:
I wan't to be able to easily recover deleted files from external HDD because people on my network are not used to computers and they get confused very fast (not knowing are they deleting from server or local)

Is there a way to configure my setup so that I have a trash bin on external HDD for deleted files (sd card is to small for trash bin, but if there's no other way I will buy a larger one), or am I just missing something.
Googling didn't gave me an answer.

Cheers

zebik
Posts: 25
Joined: Sat Feb 13, 2016 11:13 am

Re: External HDD trash bin

Tue Feb 21, 2017 3:54 pm

You could restrict users rights to write / delete files and that would stop files being deleted accidently.

carast
Posts: 2
Joined: Tue Feb 21, 2017 11:31 am

Re: External HDD trash bin

Tue Feb 21, 2017 7:43 pm

zebik wrote:You could restrict users rights to write / delete files and that would stop files being deleted accidently.
Forgot to mention that a need them to have write / delete rights.. Accidental deleting is the problem. Don't now how to idiotproof that...

Ernst
Posts: 1334
Joined: Sat Feb 04, 2017 9:39 am
Location: Germany

Re: External HDD trash bin

Tue Feb 21, 2017 8:00 pm

carast wrote:
zebik wrote:You could restrict users rights to write / delete files and that would stop files being deleted accidently.
Forgot to mention that a need them to have write / delete rights.. Accidental deleting is the problem. Don't now how to idiotproof that...
Simple solution: you need a good backup procedure to recover from accidental deletes.
The road to insanity is paved with static ip addresses

tweak42
Posts: 532
Joined: Tue Mar 22, 2016 3:16 am
Location: Los Angeles, California

Re: External HDD trash bin

Wed Feb 22, 2017 2:11 am

carast wrote:Hi people.
I'm a newcomer to linux and raspberry. I've managed to setup a samba file share over my wifi network.

My setup:
Raspberry pi b+ running on Raspbian Jessie Lite which is running my samba file share server.
I have two external HDDs connected to the Pi, one for storage (which is available to all on my network, type NTFS) and one for backing up the storage one.

My problem:
When someone deletes a file, folder.. on my storage HDD it is gone... there is no Recycle bin (Trash bin) on external HDD for me to recover the file.

What I wan't:
I wan't to be able to easily recover deleted files from external HDD because people on my network are not used to computers and they get confused very fast (not knowing are they deleting from server or local)

Is there a way to configure my setup so that I have a trash bin on external HDD for deleted files (sd card is to small for trash bin, but if there's no other way I will buy a larger one), or am I just missing something.
Googling didn't gave me an answer.

Cheers
I didn't even know this feature existed in samba until you asked, but is this what you are looking for?
https://www.samba.org/samba/docs/man/ma ... cle.8.html

Return to “Beginners”