Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Files are not deleted, but made hidden

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
User avatar
fred44nl
Posts: 215
Joined: 2018-07-14 08:54
Has thanked: 1 time

Files are not deleted, but made hidden

#1 Post by fred44nl »

before my present machine, I was using a Raspberry Pi 3B, with Raspbian Lite.
to begin with, this was Jessie, later upgraded to Stretch.
when downloading files with Sabnzbd+ and Deluge, the nzb- and torrent-files were placed in a special folder, watched by Sabnzbd+ and Deluge. once detected and handled, these nzb- and torrent-files were deleted, as they should.

now, I an running Debian 9 Stretch and doing exactly the same thing.
everything works well, with one exception:
the nzb- and torrent-files are not deleted from the watched folder correctly.
they are made hidden, instead of being deleted.

what could be causing this ??
Debian 10 - Buster on Compulab Fitlet2
Debian 12 - Bookworm on Acer Spin 1

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

Re: Files are not deleted, but made hidden

#2 Post by dilberts_left_nut »

Show evidence.
AdrianTM wrote:There's no hacker in my grandma...

User avatar
fred44nl
Posts: 215
Joined: 2018-07-14 08:54
Has thanked: 1 time

Re: Files are not deleted, but made hidden

#3 Post by fred44nl »

fred44nl@Debian:~$ ls -al /mnt/usbhdd/shares/Downloads
totaal 32
drwxrwxrwx 2 fred44nl fred44nl 12288 sep 4 13:15 .
drwxrwxrwx 29 fred44nl fred44nl 4096 sep 4 10:32 ..
-rwxrw-rw- 1 fred44nl fred44nl 4096 sep 4 10:09 ._Better.Call.Saul.S04E05.1080p.WEB.X264-METCON[rartv]-[rarbg.to].torrent.invalid
-rwxrw-rw- 1 fred44nl fred44nl 4096 sep 4 12:54 ._Harlots (2018) S02E06 1080p HULU WEB-DL DD2.0 NL Subs.torrent.invalid
-rwxrw-rw- 1 fred44nl fred44nl 4096 sep 4 12:54 ._Power-S05E07-1080p-WEB-DL-DD-5-1-H264-2018-NL-Subs.torrent.invalid
-rwxrw-rw- 1 fred44nl fred44nl 4096 sep 4 10:31 ._WdCJNvuLLv1qOVO7X1.par2.nzb
Debian 10 - Buster on Compulab Fitlet2
Debian 12 - Bookworm on Acer Spin 1

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Files are not deleted, but made hidden

#4 Post by debiman »

from your description i'd say that the newer software version simply handles things differently.

User avatar
fred44nl
Posts: 215
Joined: 2018-07-14 08:54
Has thanked: 1 time

Re: Files are not deleted, but made hidden

#5 Post by fred44nl »

don't think my current software is newer, than before.
quite the opposite, I think.
certainly Deluge is a bit older now and the kernel is also a lower version.
Debian 10 - Buster on Compulab Fitlet2
Debian 12 - Bookworm on Acer Spin 1

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Files are not deleted, but made hidden

#6 Post by debiman »

fred44nl wrote:don't think my current software is newer, than before.
quite the opposite, I think.
certainly Deluge is a bit older now and the kernel is also a lower version.
forgive me.
i meant to say:
from your description i'd say that the other software version simply handles things differently.

User avatar
fred44nl
Posts: 215
Joined: 2018-07-14 08:54
Has thanked: 1 time

Re: Files are not deleted, but made hidden

#7 Post by fred44nl »

there appear to be more hidden files, with the same name as the file, they are referring to.
could this have to do with the way the drive is mounted ??

mount -l says:
fred44nl@Debian:~$ mount -l | grep sdb1
/dev/sdb1 on /mnt/usbhdd type ext4 (rw,relatime,data=ordered)
my fstab says:
UUID=cdd8bbd9-285b-45e8-ad06-ab29e7997e0b /mnt/usbhdd ext4 defaults 0 1
Debian 10 - Buster on Compulab Fitlet2
Debian 12 - Bookworm on Acer Spin 1

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Files are not deleted, but made hidden

#8 Post by debiman »

fred44nl wrote:could this have to do with the way the drive is mounted ??
why do you say that?

sorry if i didn't make it clearer, but from your description the problem seems to be with the software you're using, nothing else.
maybe you should ask the developers of the software in question?
maybe it has its own forum/wiki/issue tracker?

User avatar
fred44nl
Posts: 215
Joined: 2018-07-14 08:54
Has thanked: 1 time

Re: Files are not deleted, but made hidden

#9 Post by fred44nl »

debiman wrote:
fred44nl wrote:could this have to do with the way the drive is mounted ??
why do you say that?
what might happen if I were to mount the drive with 'defaults,noatime' ??

as this was the way the drive was mounted under Raspbian.
this was advised as the Raspberry is not very powerfull.
Debian 10 - Buster on Compulab Fitlet2
Debian 12 - Bookworm on Acer Spin 1

User avatar
fred44nl
Posts: 215
Joined: 2018-07-14 08:54
Has thanked: 1 time

Re: Files are not deleted, but made hidden

#10 Post by fred44nl »

I opened one of those hidden files and this was in it:
com.apple.lastuseddate
(there is more, but I cannot quote that)

any suggestions ??

edit:

veto files :)
All you need to do is to edit your share config (for example in Linux in /etc/samba/smb.conf) and add the following option into your share config:

veto files = /._*/.DS_Store/
Debian 10 - Buster on Compulab Fitlet2
Debian 12 - Bookworm on Acer Spin 1

User avatar
fred44nl
Posts: 215
Joined: 2018-07-14 08:54
Has thanked: 1 time

Re: Files are not deleted, but made hidden

#11 Post by fred44nl »

Ann521 wrote: Faced exactly same issue and I still don't know the solution. Please help me.
All you need to do is to edit your share config - /etc/samba/smb.conf - and add the following option into your share config:

veto files = /._*/.DS_Store/
#======================= Global Settings =======================

[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = WORKGROUP

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
# wins support = no

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
; wins server = w.x.y.z

# This will prevent nmbd to search for NetBIOS names through DNS.
dns proxy = no

## preventing both resource shares and .DS_Store files

veto files = /._*/.DS_Store/
delete veto files = yes

Debian 10 - Buster on Compulab Fitlet2
Debian 12 - Bookworm on Acer Spin 1

Post Reply