ceremcem / build-freecad-asm3

Build FreeCAD Asm3 inside a Debian container and run from there.
6 stars 0 forks source link

running the scripts without root permission #16

Open wohltat opened 3 years ago

wohltat commented 3 years ago

How hard is it to make the scripts for building and running FC work with user permissions?

ceremcem commented 3 years ago

That was one of the things in mind quite some time. Short answer: It should be possible, because Docker can do it, right?

Long answer: I couldn't find a proper solution yet. I tried linux-user-chroot but maybe I didn't provide appropriate options, I'm not sure. I guess it might be possible via taking advantage of Linux Namespaces, which I don't know how.

However, it's worth to note that FreeCAD is run with regular user permissions (not root). If you keep run-in-chroot.sh script under control (you only update this repository with changes reviewed by yourself) I guess there is nothing to worry about.

I remember there are some ways to run LXC without root permissions. Maybe it's also worth to take a look at.

ceremcem commented 3 years ago

Note to myself: https://unix.stackexchange.com/a/297307/65781