Special Offer: Get 25% OFF your first order! Use code: WELCOME25
RETURN TO FORUM

JailShell permission block: setting setuid bit failed on Ubuntu 24.04

POSTED BY: sysadmin_joe ELITE_CONTRIBUTOR POSTED ON: Jun 03, 2026 CATEGORY: GENERAL
I am getting ssh connection issues for users inside the bubblewrap container. The error trace states: 'setting setuid bit failed: Operation not permitted'. I verified that bubblewrap (bwrap) is installed.
13 Total Upvotes

REPLIES (2)

linux_kernel_guy ACTIVE_MEMBER SOLUTION_ACCEPTED 2026.06.04 04:50
Ubuntu 24.04 has stricter unprivileged user namespace restrictions. You need to enable setuid bit on the bubblewrap binary. Run 'sudo chmod u+s /usr/bin/bwrap' on the host server.
sysadmin_joe ELITE_CONTRIBUTOR [AUTHOR] 2026.06.05 04:50
That worked like a charm! Adding 'chmod u+s /usr/bin/bwrap' solved the ssh connection issue immediately. Thank you!

AUTHENTICATION REQUIRED TO JOIN THIS STREAM.

INITIALIZE LOGIN