--
You received this message because you are subscribed to the Google Groups "Minarca Data Backup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minarca+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/minarca/CAJEaRd6n15KvO-MRXc4Vt%2B2TvM4ScSt6qHioqXJ9VyYkeU9PZQ%40mail.gmail.com.
Despite this being an Ubuntu 24.04.2 LTS VPS installation, the error persists, suggesting a deeper configuration or permission-related issue. The log entries repeatedly indicate failures in creating the rdiff-backup
jail, with specific PermissionError
related to /proc/self/setgroups
.
Given the nature of this problem, I would greatly appreciate your guidance on how to adjust the system to allow client connections.
Thanks :)
To view this discussion visit https://groups.google.com/d/msgid/minarca/CAM%3D_CK7DmM7PTo1TeaLmj0_EqoQQs4cjUGUbecbyOQu2eR7_LA%40mail.gmail.com.
cat /proc/sys/kernel/unprivileged_userns_clone
You can check if it's working with "unshare --user --net bash"
as a non-root user.
To view this discussion visit https://groups.google.com/d/msgid/minarca/CAJEaRd7Q%3Dwoq2RSsMEqVxBoTTxphpsNqfwCmTUjaLZgK%2BMnprw%40mail.gmail.com.
Then I'm not sure what's wrong.
The error PermissionError: [Errno 13] Permission denied: '/proc/self/setgroups'
usually occurs when unprivileged user namespaces are not allowed. Since you’ve already checked and enabled unprivileged_userns_clone
, the issue might be related to additional security restrictions in place on your system.
Is it possible AppArmor or SELinux is enforcing restrictions ?
To view this discussion visit https://groups.google.com/d/msgid/minarca/eca295b4-dad7-49d7-9d6d-b764706ffd48n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/minarca/e75b90d8-e0a0-4131-b018-2a3cccd3f890n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/minarca/1d7c93f6-7eed-4eb5-9499-7022f3ecb76an%40googlegroups.com.
I’ve spent some time investigating the issue regarding the behavior differences between Ubuntu 24.04 and Debian Bookworm.
The discrepancy is related to a specific Ubuntu feature, which you can read more about here: Ubuntu 23.10 - Restricted Unprivileged User Namespaces.
The ideal solution would be to provide an AppArmor profile for Minarca-shell. Unfortunately, I was unable to create one within a reasonable timeframe. If anyone is willing to take on this task, your help would be greatly appreciated.
In the meantime, it’s possible to temporarily disable the enforcement by running the following command:
echo 0 > /proc/sys/kernel/apparmor_restrict_unprivileged_userns
Thanks, FVDBS, for your feedback.
You may also want to persist this change across reboots by creating a file at /etc/sysctl.d/99-example.conf
with the following content:
kernel.apparmor_restrict_unprivileged_userns = 0
To view this discussion visit https://groups.google.com/d/msgid/minarca/90e1314c-6428-4116-aa19-4efde90b288cn%40googlegroups.com.
/var/log/minarca)
here. To view this discussion visit https://groups.google.com/d/msgid/minarca/972f980e-6baf-4f7b-a657-54980d65637cn%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/minarca/7108f63b-b028-422c-bfe0-048ddc89be1dn%40googlegroups.com.