Recycle bin folder is not accessible

Good morning, i upgrade nethserver and enabled audit and recycle bin.

I have actived grafana but i don’t show “modules folder: it contains the default dashboards for the installed modules, like Samba Audit” ; i see only the core folder.

Furthermore the recycle bin folder is not accessible (i reset acl permission in shared folder).

Any suggestion? thanks


Did you maybe do a manual configuration of the recycle bin or the audit in include.conf before the feature was released?
If yes, please remove the manual config as there may be a conflict.

I had manually changed the settings of the recycle bin but then I deleted everything. As for the audit I never set anything.

As for the recycle bin I discovered that the folder is accessible only by the first person who deletes a file. After that only that user can access the folder and only the files deleted by him are put in the trash.

Thanks, you found a bug.

I could reproduce the recycle bin issue. Setting recycle:directory_mode = 0770 (the default is 0700) makes the recycle bin accessible for group users so they can also delete files and they’re sent to recycle bin.
But the deletion of the .recylce folder can still only be done from the initial creator of the recycle bin, which is the user that first deletes a file, even when we set directory_mode to 0777.
I need to check if there are better solutions.

I couldn’t reproduce the audit issue. After enabling Grafana I can see the Audit modules in the Dashboard.

Let’s check the configuration options of the share (adapt testshare1 to your share name)

runagent -m samba1 podman exec -ti samba-dc net conf showshare testshare1

Does it help to disable Grafana and enable it again?

Please check if the dashboard modules and datasources are there:

[root@node ~]# runagent -m metrics1 ls -l dashboards/modules/ datasources/
dashboards/modules/:
total 24
-rw-r--r--. 1 metrics1 metrics1  5502 Jun 30 16:46 provision_samba1_samba_audit_search.json
-rw-r--r--. 1 metrics1 metrics1 15589 Jun 30 16:46 provision_samba1_samba_audit_statistics.json

datasources/:
total 8
-rw-r--r--. 1 metrics1 metrics1 609 Jun 30 16:46 local.yml
-rw-r--r--. 1 metrics1 metrics1 386 Jun 30 16:46 provision_samba1_samba_audit.yml

Please also check the (metrics) logs for errors.

thanks for the suggestion.

When i set 0770 .recycle directory is all ok. All user view file and access to folder.

For grafana i disable and enable in dashbord but no solve problem.

The modules and datasources are missing:

[root@ns8 ~]# runagent -m metrics1 ls -l dashboards/modules/ datasources/
dashboards/modules/:
total 0

datasources/:
total 4
-rw-r–r-- 1 metrics1 metrics1 609 Jul 3 15:00 local.yml

1 Like

Try to re-run the dashboard setup command:

runagent -m samba1 ../actions/configure-module/80provision_metrics
1 Like

Thanks for suggestion. it’s work.

the name of my samba is samba4

runagent -m samba4 ../actions/configure-module/80provision_metrics
2 Likes

Thank you for reporting it.

Markus has already filed the reported issues in the following bugs:

1 Like